bug in LoadXML

  • Thread starter Thread starter Kenneth P. Graci
  • Start date Start date
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?
 
Hi Kenneth,

I was unable to reproduce the error.

Dim xmlDoc As New XmlDocument
xmlDoc.LoadXml ("<?xml version=""1.0"" ?><tag>a,b</tag>")

worked without a problem. I'm using VS2002 and .NET 1.0.3705.

??

Regards,
Fergus
 
Back
Top