Re: datasets & xmlhttp?
- From: "David Browne" <davidbaxterbrowne no potted meat@xxxxxxxxxxx>
- Date: Thu, 6 Oct 2005 21:49:38 -0500
<sfslug@xxxxxxxxxxx> wrote in message
news:1128648840.532272.47630@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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("POST", strUrl, False)
> xmlhttp.setRequestHeader("Content-Type", "text/xml")
> xmlhttp.Send("...request ...")
> Dim ds1 As New DataSet
> ds.ReadXml(xmlhttp.responsexml.xml, XmlReadMode.Fragment)
> ---------------
> the last line above, and any variations I've tried(xmlreadmode.auto,
> etc.), all result in varying errors. This variation gives: "Illegal
> characters in path."
>
> Any insight appreciated.
>
Why are you using (old) MSXML2.XMLHTTP instead of (new)
System.Net.WebClient?
David
.
- References:
- datasets & xmlhttp?
- From: sfslug
- datasets & xmlhttp?
- Prev by Date: Looking For Code Sample and Request Feedback
- Next by Date: RE: Load a xml file on disc into two diffrent XmlDocuments
- Previous by thread: datasets & xmlhttp?
- Next by thread: Re: datasets & xmlhttp?
- Index(es):
Relevant Pages
|