I'm doing this small project and my task was to read a xml file and parse it so that it can be stored in a class. Here's the xml example. it's written in SOAP and what I want to do is get
<ns2:getNewTokenResponse xmlns:ns2="http://abc.examples.com/">
this part parsed and the child nodes so that I can create a class that has 'nodeName' as an attribute with a value of 'getNewTokenResponse'. +session key
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header>
</env:Header>
<env:Body>
<ns2:getNewTokenResponse xmlns:ns2="http://abc.examples.com/">
<return>
{{session.key}}
</return>
</ns2:getNewTokenResponse>
</env:Body>
</env:Envelope>
But my real problem is, I found many good example codes, namespaces are not prefixed and structure of xml file can vary. So here I am being confused to achieve the task. I'll appreciate any advice. Cheers:D