I am new to GDataXMLNode and xml namespaces.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://ift.tt/sVJIaE" xmlns:xsi="http://ift.tt/ra1lAU" xmlns:xsd="http://ift.tt/tphNwY">
<SOAP-ENV:Body>
<ns1:StockDetails xmlns:ns1="urn:WinRetail:TestWebService">
<ttStockDetail>
<ttStockDetailRow>
<iconname>Levels.png</iconname>
<screenlabel>Inhand</screenlabel>
<detail>Product Detail</detail>
</ttStockDetailRow>
<ttStockDetailRow>
<iconname>Levels.png</iconname>
<screenlabel>In transit</screenlabel>
<detail>0</detail>
</ttStockDetailRow>
</ttStockDetail>
<resultstring>OK</resultstring>
</ns1:StockDetails >
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How to parse this xml with namespaces using GDataXMLNode in Xcode? I don't want to use path. I want to get the element list in an array and then loop through it with a specific condition. I am unable to get the element list for 'StockDetails'.
Please help.
No comments:
Post a Comment