Hello. I'm using xmlhttp in a windows application to return xml data.
The xml data is returned successfully, but I get errors when I try
loading the xmlhttp response object to a dataset. I can write the xml
to a file & read that in to a dataset, but what fun is that?
---------------
code:
xmlhttp = New MSXML2.XMLHTTP
xmlhttp.open("P OST", strUrl, False)
xmlhttp.setRequ estHeader("Cont ent-Type", "text/xml")
xmlhttp.Send(". ..request ...")
Dim ds1 As New DataSet
ds.ReadXml(xmlh ttp.responsexml .xml, XmlReadMode.Fra gment)
---------------
the last line above, and any variations I've tried(xmlreadmo de.auto,
etc.), all result in varying errors. This variation gives: "Illegal
characters in path."
Any insight appreciated.
The xml data is returned successfully, but I get errors when I try
loading the xmlhttp response object to a dataset. I can write the xml
to a file & read that in to a dataset, but what fun is that?
---------------
code:
xmlhttp = New MSXML2.XMLHTTP
xmlhttp.open("P OST", strUrl, False)
xmlhttp.setRequ estHeader("Cont ent-Type", "text/xml")
xmlhttp.Send(". ..request ...")
Dim ds1 As New DataSet
ds.ReadXml(xmlh ttp.responsexml .xml, XmlReadMode.Fra gment)
---------------
the last line above, and any variations I've tried(xmlreadmo de.auto,
etc.), all result in varying errors. This variation gives: "Illegal
characters in path."
Any insight appreciated.
Comment