Hello,
I have an XML file and there is one node, <NODE1>. that has several child nodes.
I want to loop through each child node, <NODE2>, and get the value of <NODEB>.
I want to find which child node, <NODE2>, has a child node, <NODEB>, that equals "ROOF". Once I find the <NODE2> that contains the <NODEB> that equals "ROOF", I want to restart the loop so that I can evaluate each child node in that <NODE2>. See sample XML below.
Is there anyway to restart a loop? I'm new to evaluating XML in VB.net, so I don't
know if there is anyway to search a group of nodes looking for a specific value.
I have an XML file and there is one node, <NODE1>. that has several child nodes.
I want to loop through each child node, <NODE2>, and get the value of <NODEB>.
I want to find which child node, <NODE2>, has a child node, <NODEB>, that equals "ROOF". Once I find the <NODE2> that contains the <NODEB> that equals "ROOF", I want to restart the loop so that I can evaluate each child node in that <NODE2>. See sample XML below.
Is there anyway to restart a loop? I'm new to evaluating XML in VB.net, so I don't
know if there is anyway to search a group of nodes looking for a specific value.
HTML:
<NODE1>
<NODE2>
<NODEA>1</NODEA>
<NODEB>FLOOR</NODEB>
<NODEC>WOOD</NODEC>
<NODE2>
<NODE2>
<NODEA>2</NODEA>
<NODEB>ROOF</NODEB>
<NODEC>SHINGLE</NODEC>
<NODE2>
<NODE2>
<NODEA>3</NODEA>
<NODEB>SIDING</NODEB>
<NODEC>SHINGLE</NODEC>
<NODE2>
<NODE1>
Last edited by a moderator: