• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

asp.net + objXMLSerializer.Deserialize + error in XML document

I am working with XMLs and trying to enter the infomation into a database, i try deserializing the XML and get the following error.

There is an error in XML document (1, 2098).

That is it, is there anyway of telling where the actual error is happening or why, obviously there is something wrong with the XML, but i can not see it.

Thanks
0
dkilby
Asked:
dkilby
1 Solution
 
BurntSkyCommented:
Is this just one file you need to check?  Or is it an XML file generated by some other application that will always be returned this way?

If it's just one file, load it up into VS.NET and click 'Validate XML' from the 'XML' menu.  In the 'Task List' window it will tell you what the error is.

The "There is an error in XML document" message means the file isn't well-formed.  So it's something simple like a closing tag that doesnt match it's opener (remember XML is case sensitive), or an invalid character, or incorrectly nested tags, etc.
0
 
dkilbyAuthor Commented:
Found the problem, was a value of inside one of the tags was not what the schema had indicated

Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now