Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document Root Element is missing

Status
Not open for further replies.

brown2515

Vendor
Jun 28, 2003
1
US
A client supplied following specs for XML file

<?xml version="1.0"?>
<!DOCTYPE PriceAvailabilityRequest [
<!ELEMENT PriceAvailabilityRequest (StoreID, AccountPassword, Part+)>
<!ELEMENT StoreID (#PCDATA)>
<!ELEMENT AccountPassword (#PCDATA)>
<!ELEMENT Part (LineAbbrev, PartNumber, PartMessage?)>
<!ELEMENT LineAbbrev (#PCDATA)>
<!ELEMENT PartNumber (#PCDATA)>
<!ELEMENT PartMessage (#PCDATA)>
]>

when we submit, we send following :

<?xml version="1.0"?>
<!DOCTYPE PriceAvailabilityRequest [
<!ELEMENT PriceAvailabilityRequest (StoreID, AccountPassword, Part+)>
<!ELEMENT StoreID (#PCDATA)>
<!ELEMENT AccountPassword (#PCDATA)>
<!ELEMENT Part (LineAbbrev, PartNumber, PartMessage?)>
<!ELEMENT LineAbbrev (#PCDATA)>
<!ELEMENT PartNumber (#PCDATA)>
<!ELEMENT PartMessage (#PCDATA)>
]>
<PriceAvailabilityRequest>
<StoreID>TestId</StoreID>
<AccountPassword>D01TEST</AccountPassword>
<Part>
<LineAbbrev>ABC</LineAbbrev>
<PartNumber>123</PartNumber>
<PartMessage></PartMessage>
</Part>
</PriceAvailabilityRequest>

the response we get from their server says Root element missing, anyone see what we are doing wrong in the file sent ?

Thanks CB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top