Ill Formed XML Code

ZyprexaZP

New Member
I currently try updating product data with the Amazon MWS and the Feeds API. My problem: Updating the Inventory and setting a new quantity for my products resolves in errors like this: \[code\]The XML you submitted is ill-formed at the Amazon Envelope XML levelat (or near) line X, column Y.\[/code\]On the other hand, I export nearly the same XML to update the prices. That works just fine... Here is an example of the XML that i upload to the Feeds API to update the quantity:\[code\]<?xml version="1.0" encoding="utf-8"?><AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="amznenvelope.xsd"> <Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier>{SellerID}</MerchantIdentifier> </Header> <MessageType>Inventory</MessageType> <Message> <MessageID>1</MessageID> <Inventory> <SKU>ArtNoXX</SKU> <Quantity>10</Quantity> </Inventory> </Message> <Message> <MessageID>2</MessageID> <Inventory> <SKU>ArtNoXY</SKU> <Quantity>23</Quantity> </Inventory> </Message></AmazonEnvelope>\[/code\]P.S.: I'm using C# and a XMLDocument to create the XML File...Edit: The Error is shown multiple times. Only the first and the last 3 lines don't appear in the error log.Example:\[code\]... (or near) line 10, column 16.\[/code\]That would be\[code\]<Inventory>\[/code\]Regarding to the column, it should be \[code\]>\[/code\]
 
Back
Top