Translation to vb from C# ?

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
}
}
 
C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top