Hi,
My application is reading in an XML message which has a SOAP wrapper:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="<http://schemas.xmlsoap.org/soap/envelope/>" SOAP-ENV:encodingStyle="<http://schemas.xmlsoap.org/soap/encoding/>">
<SOAP-ENV:Body>
<ns:Message xmlns:ns="http://www.namespace.com">
<...message content...>
</ns:Message>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
While the SOAP components need to be there, they are of no use to my particular application so I want to strip them out. I want to end up with a DOM object which looks like the following, with no SOAP components or namespaces:
<?xml version="1.0" encoding="UTF-8"?>
<Message>
<...message content...>
<Message>
The namespace prefix (ns) and the namespace value ("http://www.namespace.com") will not necessarily always be the same - however I will be assuming that these can be config-file driven.
Can anyone provide me with some DOM code for stripping out the SOAP components?
Any help would be greatly appreciated.
Haitham.