robrichards/xmlseclibs

Remove Prefix "ds:"

Opened this issue · 2 comments

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?

$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);

$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("");