Sascha
16 years agoOccasional Contributor
How to parse XML contains escaped xml?
Hi,
I have a little problem. I receive a Soap Response not like the standard is. It looks like:
SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><?xml version="1.0"?><MessageResponse><Entity name="ORG_STRATEGY"><Property name="strategy_num" value="1048" type="INTEGER"/></Entity></MessageResponse>
As u see, there is one field called "return" and this includes escaped xml. How can I access this?
If I do:
def answer = holder.getNodeValue( "//return" )
I get the return string including this escaped String. I cannot access the elements in this string, because of the "<" ">"
Any Idea how to parse those responses?
An idea could be to do a search replace on the answer and give this back to the parser. But how would this work?
Thanks in advance
Sascha
I have a little problem. I receive a Soap Response not like the standard is. It looks like:
SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
As u see, there is one field called "return" and this includes escaped xml. How can I access this?
If I do:
def answer = holder.getNodeValue( "//return" )
I get the return string including this escaped String. I cannot access the elements in this string, because of the "<" ">"
Any Idea how to parse those responses?
An idea could be to do a search replace on the answer and give this back to the parser. But how would this work?
Thanks in advance
Sascha