Yes, load it into the document object.

Dim xmlDoc as XmlDocument = new XmlDocument
xmlDoc.LoadXml(yourstring)

Walk the nodes.

DIm nMain as XmlNode
nMain = xmlDoc.selectSingleNode("main")
Dim nChild as XmlNode
Dim NodeValue as string
For each nChild in nMain.ChildNodes
'do something
    NodeValue = nChild.InnerText
Next

Note, this is .NET 1.1 syntax, but it is probably pretty close in 2.0

On 10/3/05, Rick Holcomb <[EMAIL PROTECTED]> wrote:
> I have a string containing XML I am receiving from a web service that
> I would like to parse. Can I use the XMLDocument object type for this?
> Here is an example of the string:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <main>
> <v1>12345</v1>
> <v2>E6</v2>
> <v3></v3>
> <v4>Shipping</v4>
> </main>
>
> I want to be able to identify the individual values of v1, v2, v3 and
> v4 for use with other functions. Any help would be greatly appreciated.
>
> Rick
>
> (Environment VS 2005 Beta 2)
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to