[quoted text, click to view] "Martin Honnen" wrote:
> That fragment is not well-formed XML with namespaces as several prefixes
> (soapenc, soapenv, xsi, ns1829687187) are not bound to a namespace URI.
> So we need to see the namespace declarations if you need help processing
> that XML.
>
> --
>
> Martin Honnen --- MVP XML
>
http://JavaScript.FAQTs.com/ >
Thanks for the reply.
Here is a truncated version of the whole file:
<soapenv:Envelope>
<soapenv:Body
soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"> <getOrdersForDateRangeResponse>
<FilteredOrders href="#id0"/>
</getOrdersForDateRangeResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1829687187:FormatBFilter">
<ns1829687187:filterId xsi:type="xsd:int">94</ns1829687187:filterId>
<ns1829687187:Orders href="#id4"/>
<ns1829687187:Orders href="#id5"/>
</multiRef>
<multiRef id="id5" soapenc:root="0"
soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1829687187:FormatBOrder">
<ns1829687187:orderNum xsi:type="xsd:string">097294</ns1829687187:orderNum>
<ns1829687187:buildDate
xsi:type="xsd:dateTime">2007-07-10T23:00:00.000Z</ns1829687187:buildDate>
<ns1829687187:buildSeq xsi:type="xsd:long">179</ns1829687187:buildSeq>
<ns1829687187:vehicleLine
xsi:type="xsd:string">TLS</ns1829687187:vehicleLine>
<ns1829687187:offlineDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<ns1829687187:Part href="#id910"/>
<ns1829687187:Part href="#id911"/>
<ns1829687187:Part href="#id912"/>
</multiRef>
<multiRef id="id910" soapenc:root="0"
soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1829687187:FormatBPart">
<ns1829687187:prefix xsi:type="xsd:string">XH42</ns1829687187:prefix>
<ns1829687187:base xsi:type="xsd:string">017B22</ns1829687187:base>
<ns1829687187:suffix xsi:type="xsd:string">AA</ns1829687187:suffix>
<ns1829687187:partDesc xsi:type="xsd:string">SHLD VEH IDENT
LBL</ns1829687187:partDesc>
<ns1829687187:freeTextField xsi:type="xsd:string">VIN STAMP CLEAR
COVER</ns1829687187:freeTextField>
<ns1829687187:qty xsi:type="xsd:double">1.0</ns1829687187:qty>
<ns1829687187:supplier xsi:type="xsd:string">L7MTA</ns1829687187:supplier>
<ns1829687187:lineFeedLoc1 xsi:type="xsd:string" xsi:nil="true"/>
<ns1829687187:lineFeedLoc2 xsi:type="xsd:string" xsi:nil="true"/>
<ns1829687187:lineFeedLoc3 xsi:type="xsd:string" xsi:nil="true"/>
<ns1829687187:lineFeedLoc4 xsi:type="xsd:string" xsi:nil="true"/>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
The top element with type 'ns1829687187:FormatBFilter' is a list of orders
which are assigned arbitrary id nos as links (#id4, #id5). These links refer
down to next element (type 'ns1829687187:FormatBOrder') which contains the
order number. This element also contains a list of parts related to the order
no. that are also assigned id nos. (#id910, #id911, #id912). These links in
turn refer to the final element containing the part nos (prefix, base and
suffix) which is the data I need to extract from the file along with the
order no.
Hope this helps.