Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XmlTextReader reading xml fragment in VB

Status
Not open for further replies.

ashstampede

Programmer
Aug 30, 2004
104
GB
currently i have been using a webrequest to send xml data to a third party web server. They will then send a response in xml format.
My question is with reading an xml fragment, how can i read the root element? what i have so far is
Code:
Dim xReadStream as XmlTextReader(webResponseStream)
Dim xmlString as String
 while xReadStream.read()
   xmlString += xReadString.ReadOuterxml()
 end while

this will give me all the Child elements, sub elements there atttributes and values but not the root element.
how would i read the stream and just get all the xml data and cast to a string?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top