View Full Version : DOM Parser - Parse Soap Body

Jan 19, 2011, 06:56 AM
As per this link , I found libxml2-DOMhttp://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project parser as the best to go.

But I had the following problem. The xml response I am getting from the server includes the soap body also as follows :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>

<xmlContent> subtags and data </xmlContent>


Now my problem, when I use libxmlparser (or any dom parser as mentioned), My response is not getting parsed as expected.

How to parse the soap response with above format without using substring methods of nsstring (as I don't want to hardcode the response).