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?
 
F

Fergus Cooney

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
 

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