How would I go about getting the path location of a node within an XML document.

For example, I would know the "id" attribute of the node I was searching for and want to be able to get the path information.

<xml>
        <node ID="1">
                <node ID="52" />
                <node ID="8237">
                        <node ID="3" />
                </node>
                <node ID="98">
                        <node ID="566" />
                </node>
        </node>
</xml>

XPointer = root().id(566)

how would I easily get an array that shows the hierarchy?
======
xml
node    1
node    98
node    566
======

Can this be done with having to loop through the whole XML doc?

Bryan Hughes
TFG-PIU
954-493-6565 x122

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to