Re: datasets & xmlhttp?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




<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


.



Relevant Pages

  • datasets & xmlhttp?
    ... I'm using xmlhttp in a windows application to return xml data. ... loading the xmlhttp response object to a dataset. ... the last line above, and any variations I've tried(xmlreadmode.auto, ...
    (microsoft.public.dotnet.languages.vb)
  • can write a xmlhttp which could beyound the web area limtied ?
    ... i want to get xml data by xmlhttp in my ajax program, ... is not on my web,i do not want write a aspx proxy program neither, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: datasets & xmlhttp?
    ... A dataset in XML is a file using XML. ... I'm using xmlhttp in a windows application to return xml data. ... > the last line above, and any variations I've tried(xmlreadmode.auto, ... all result in varying errors. ...
    (microsoft.public.dotnet.languages.vb)