XML Validator unexplained error

sshimla

New member
Joined
Aug 24, 2003
Messages
3
Hi,

Im getting an unexplained error when validating a valid XML content using a valid XSD file. The reason I know these are valid cause this service has been online for a few weeks and this is the first time I got this response from an XML.
The Error I get is:

Element http://www.somewhere.com:ShipmentValidateRequest has invalid content. An error occurred at (51, 2).
In this position and all arround it the XML looks fine.
I have a tag that is optional build of a Complex tag called <Reference> and in it <ReferenceID> that as far as I can tell throws the exception.
ReferenceID is of xsd:string type and receives a value of 64347.

The exception occurs on the Read() method.

Any tips anyone ???

Thanks.
Shimron
 
XML Validator - Files Attached

The Code is standard (Read())
I attached the files:
Input Error (The input)
Output Error (The output I generate, it includes the error)
Relevant XSDs
 
Last edited by a moderator:
Problem Solved

Thank you all for your help.

We found the problem in the XML, it was relevant to the location of the tag.

Thanks again.
 
Back
Top