Wednesday, 18 September 2013

How can I parse escaped XML with XML::LibXML

How can I parse escaped XML with XML::LibXML

So the responses are basically full XML documents escaped as a string
inside of another XML Document. What is the best way to extract this
String and Parse it into something I can simply get the values from.
(will accept simply how to get it back to raw XML)
<soap:Body>
<DoItUsernamePwdResponse xmlns="http://www.aspdotnetstorefront.com/">
<DoItUsernamePwdResult>&lt;?xml version="1.0"
encoding="utf-8"?&gt;&lt;AspDotNetStorefrontImportResult
Version="9.2" DateTime="9/18/2013 1:46:06 PM"&gt;&lt;Item
NodeType="Entity" Name="Nike"
GUID="84775261-731D-4E11-BB82-FA5F61BC61C5" ID="1" ActionTaken="Add"
Status="OK" Message=""
/&gt;&lt;/AspDotNetStorefrontImportResult&gt;</DoItUsernamePwdResult>
</DoItUsernamePwdResponse>
</soap:Body>

No comments:

Post a Comment