How do i prevent getting a xml declaration in the xml response
807404Oct 22 2010 — edited Oct 26 2010Hi,
I am using a soap call to access a webservice via plsql.
The xml response from the webservice starts as follows
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">..............
I want to find ways to
1. either prevent the xml tag <?xml version='1.0' encoding='UTF-8'?> from being returned in the response.
2. or somehow convert the entire response to a string and remove it by substr (not sure about this)
The issue i am facing is that when i run a xmltype.extract on the xml to get a particular node i am getting the
ORA-31013: Invalid XPATH expression
when i remove the tag from the response (using hardcoded values) i get the right values back.
Any suggestions are welcome.
Regards
kpillai