robrichards / xmlseclibs

A PHP library for XML Security
BSD 3-Clause "New" or "Revised" License
388 stars 181 forks source link

Remove Prefix "ds:" #229

Open tampm-dev opened 3 years ago

tampm-dev commented 3 years ago

How do I remove the prefix "ds:" from my signature. I tried attaching $objDSig = new XMLSecurityDSig(''); but this is not working for me. Can someone help me?

pablitouy commented 2 years ago

$xml = file_get_contents('signed.xml'); $bodytag = str_replace("ds:", "", $xml); $bodytag = str_replace(":ds", "", $bodytag); unlink("1.xml"); $archivo = fopen("1.xml" , "a"); if ($archivo) { $datos=$bodytag; fputs ($archivo, $datos); } fclose ($archivo);

dev-guidolin commented 2 years ago

$xml = file_get_contents('signed.xml'); $bodytag = str_replace("ds:", "", $xml); $bodytag = str_replace(":ds", "", $bodytag); unlink("1.xml"); $archivo = fopen("1.xml" , "a"); if ($archivo) { $datos=$bodytag; fputs ($archivo, $datos); } fclose ($archivo);

$objDSig = new XMLSecurityDSig("");