Parse xsd resuts from webservice



How can i parse iterate or convert to array the following result.


This is the exact result as received via soap. And eventually i will need to get the items into an array



<xs:schema xmlns:mstns="http://ift.tt/1srWjBH" xmlns="http://ift.tt/1srWjBH" xmlns:xs="http://ift.tt/tphNwY" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="PriceListDS" targetNamespace="http://ift.tt/1srWjBH" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="PriceListDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="PriceList">
<xs:complexType>
<xs:sequence>
<xs:element name="itemcode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="itemname" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Price" type="xs:decimal" minOccurs="0"/>
<xs:element name="OrigPrice" type="xs:decimal" minOccurs="0"/>
<xs:element name="Multiple" msdata:ReadOnly="true" type="xs:int" minOccurs="0"/>
<xs:element name="vat" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:PriceList"/>
<xs:field xpath="mstns:itemcode"/>
</xs:unique>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<PriceListDS xmlns="http://ift.tt/1srWjBH">
<PriceList diffgr:id="PriceList1" msdata:rowOrder="0">
<itemcode>
.........

No comments:

Post a Comment