I have a series of XML nodes that are the same (except for the data of course). I want to find the node with that attribute and use that node’s data. I know I can do this with a for loop and an if statement but I was hoping that there was a better way.
In the XML below I need to find the node with the correct ‘fileName’ attribute.
Any ideas?
<decisionPoint fileName="asdf">
<choice label="1" goTo="dfd"/>
<choice label="2" goTo="fsdfw3"/>
</decisionPoint>
<decisionPoint fileName="dfd">
<choice label="22" goTo="asdf"/>
<choice label="33" goTo="fsdfw3"/>
</decisionPoint>
<decisionPoint fileName="fsdfw3">
<choice label="222" goTo="dfd"/>
<choice label="111" goTo="asdf"/>
</decisionPoint>