C
CindyH
Hi
I have a http xml post that I'm trying to read using xmltextreader.
This is the xml:
<?xml version="1.0"?>
<userlist ACTION="newuser" VENDORNAME="H2Digital">
<amouser AMOAID="101" AMOUSERNAME="Billy hill" AMOAROLES="Student"
AMOAPRODUCTS="intralase,VISX,ILASKI" />
</userlist>
This is the code I'm using to read this
Page.Response.ContentType = "text/xml"
stream = New System.IO.StreamReader(Page.Request.InputStream)
Dim reader As System.Xml.XmlTextReader = New
System.Xml.XmlTextReader(stream)
Do While reader.Read()
When the code gets to line - 'Do while reader.read' - I get exception that
root element is missing - but xml file does have a root element.
I noticed when watching the reader during debug that the linenumber and
lineposition has strange character '&HO' in it.
This was all working fine for a while and then suddenly the reader started
up with this.
Does anyone know what is going on?
Thanks,
CindyH
I have a http xml post that I'm trying to read using xmltextreader.
This is the xml:
<?xml version="1.0"?>
<userlist ACTION="newuser" VENDORNAME="H2Digital">
<amouser AMOAID="101" AMOUSERNAME="Billy hill" AMOAROLES="Student"
AMOAPRODUCTS="intralase,VISX,ILASKI" />
</userlist>
This is the code I'm using to read this
Page.Response.ContentType = "text/xml"
stream = New System.IO.StreamReader(Page.Request.InputStream)
Dim reader As System.Xml.XmlTextReader = New
System.Xml.XmlTextReader(stream)
Do While reader.Read()
When the code gets to line - 'Do while reader.read' - I get exception that
root element is missing - but xml file does have a root element.
I noticed when watching the reader during debug that the linenumber and
lineposition has strange character '&HO' in it.
This was all working fine for a while and then suddenly the reader started
up with this.
Does anyone know what is going on?
Thanks,
CindyH