Home All Groups Group Topic Archive Search About

Translation to vb from C# ?

Author
22 May 2006 4:35 PM
Rob
Can someone translate for me please ?

foreach(XmlNode itemnode in XmlDoc.GetElementByTagName("item"))
{
XmlNode iNode = itemnode.FirstChild;

if (iNode.FirstChild.Value == "101")

{
iNode= iNode.NextSibling;
iNode.FirstChild
}
}

Author
22 May 2006 4:56 PM
Claes Bergefall
Something like this:

For Each itemnode As XmlNode In XmlDoc.GetElementByTagName("item")
    Dim iNode As XmlNode = itemnode.FirstChild;
    If iNode.FirstChild.Value =  "101" Then
        iNode = iNode.NextSibling
        iNode.FirstChild
    End If
Next

    /claes

Show quoteHide quote
"Rob" <rwch***@comcast.net> wrote in message
news:ZKKdnRWmubbOdezZRVn-tQ@comcast.com...
> Can someone translate for me please ?
>
> foreach(XmlNode itemnode in XmlDoc.GetElementByTagName("item"))
> {
> XmlNode iNode = itemnode.FirstChild;
>
> if (iNode.FirstChild.Value == "101")
>
> {
> iNode= iNode.NextSibling;
> iNode.FirstChild
> }
> }
>
Author
22 May 2006 5:19 PM
Herfried K. Wagner [MVP]
"Rob" <rwch***@comcast.net> schrieb:
> Can someone translate for me please ?

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>