eBay provides the Trading API definition file on this page. I downloaded the latest XSD file (version 791).
I tried to validate my XML for AddItems api call by using java Validator class. Then I got “org.xml.sax.SAXParseException” and got the following message.
org.xml.sax.SAXParseException; systemId: file:/some/where/ebaySvc.xsd; lineNumber: 131534; columnNumber: 54; s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Denotes if a over or under payment was recorded.'.
What is this error? The xml code around line 131534 is like following.
<xs:element name="MismatchType" type="ns:MismatchTypeCodeType" minOccurs="0" maxOccurs="1"> <xs:annotation> Denotes if a over or under payment was recorded. </xs:annotation> </xs:element>