KeithMcElroy
asked on
closest method in vb script xml
in vb script is there a way to find the closest instance of a node working up the node tree, similar to closest in jquery.
<xml>
<outer attr="thisattr">
<mid>
<inner>
<inner>
</mid>
</outer>
</xml>
something like this...
foundnode = closest(node, "outer[@thisattr]")
Function closest(node,addr)
' what would go here to find the closest.
'I am thining some sort of do while loop, but don't know
End Function
<xml>
<outer attr="thisattr">
<mid>
<inner>
<inner>
</mid>
</outer>
</xml>
something like this...
foundnode = closest(node, "outer[@thisattr]")
Function closest(node,addr)
' what would go here to find the closest.
'I am thining some sort of do while loop, but don't know
End Function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER