Translation to vb from C# ?

  • Thread starter Thread starter Rob
  • Start date Start date
R

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
}
}
 
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
 
Back
Top