robrichards / xmlseclibs

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

Append data to transform node #183

Open inc0d3 opened 5 years ago

inc0d3 commented 5 years ago

When I sign the xml have this piece of code...

`...

...` So, How can add data or elements to Transform node? Like this `... ancestor-or-self::soap:Body
robrichards commented 5 years ago

If you are looking just to add the namespaces (soap from your example), you can use the namespaces element. It takes an array. ['http://www.w3.org/TR/1999/REC-xpath-19991116']['namespaces'] - array($prefix1 => $namespace1, $prefix2 => $namespace2)