Solved

Parsing xmlHTTP response from server in VB.NET

Posted on 2004-09-17
4
826 Views
Last Modified: 2007-12-19
Hi all,

I am using a VB.NET client to communicate with an ASP.NET web service. I am able to send an XML request via xmlHTTP and get a response back which I can display using xmlHTTP.responseXML.xml.

Whats the best way to parse this response from the server. I am trying to use xmlTextReader but it requires an xml file or a stream or a URL. What I have is xmlHTTP.responseXML. How can I use xmlTextReader function to parse xml from the responseXML. Or what are the alternatives available.

Dim reader As XmlTextReader = New XmlTextReader(xmlHTTP.responseXML.xml)

gave the following error

 Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:
    'Public Sub New(url As String)': Argument matching parameter 'url' narrows from 'System.Object' to 'String'.
    'Public Sub New(input As System.IO.TextReader)': Argument matching parameter 'input' narrows from 'System.Object' to 'System.IO.TextReader'.
    'Public Sub New(input As System.IO.Stream)': Argument matching parameter 'input' narrows from 'System.Object' to 'System.IO.Stream'.

Regards,
Cannibal Corpse
0
Comment
Question by:Cannibal_Corpse
4 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 12091158
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.net Facial recognition software (time and attendance) 6 67
Web Form VB.Net  import CSV 4 47
VB.NET 1 28
ASP.NET (VB) return a record 2 40
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question