How can I get the absolute path to the root node for any given element in an XML doc?

For example, using the sample xml data below:

<root>
        <car>
                <engine/>
                <tyres/>
                <gears/>
        </car>
</root>

I want to know all of the parents/ancestors of the tyres node and get it's absolute 
path. i.e.
\root\car\tyres.
Can you use Axes with CFMX http://www.w3.org/TR/xpath#axes

Thanks


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to