Bug in LoadXML?

K

Kenneth P. Graci

This code: (vb.net)

Dim xmlDoc As New XmlDocument

xmlDoc.LoadXml(strXML)

on this xml:

<?xml version="1.0" ?><tag>a,b</tag>

produces this error:

"This is an unexpected token. The expected token is 'EndElement'. Line
1, position 28."

without the comma between a and b it works.

why?
 
K

Kenneth P. Graci

I should add that IE can load it just fine.
Also, this is not isloated to just the development machine.
Three computers, with Net Framework 1.1 installed, have this problem.

Also of possible interest: It occurs on several different sets of xml data.
The data here
is simplified to show the problem. In one case it parsed ok when coming
over in an HTTP post
argument, but when saved to a file and loaded into a string (as shown here)
it crashed. Others crash
even when not being saved to a file. Still other applications have xml with
commas in the data and they
continue to work fine??? This app also worked fine until today.

very confusing... maybe i should check for a virus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top