Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Retrive the entire path from the leaf node

Reply
Thread Tools

Retrive the entire path from the leaf node

 
 
ananda121 ananda121 is offline
Junior Member
Join Date: Sep 2009
Posts: 1
 
      09-23-2009
Hi All,

I have a xml like :

<?xml version="1.0" encoding="UTF-8"?>
<CPOs xmlns:fn="link1" xmlnss="link2">
<CPO type="topinfo" timed="no">
<field name="dataprovider" />
<field name="description"/>
<field name="entry">
<field name="user"/>
<field name="machine"/>
<field name="shot"/>
<field name="run"/>
</field>
<field name="parent_entry">
<field name="user"/>
<field name="before_leaf">
<field name="user1"/>
<field name="machine2"/>
<field name="shot1"/>
<field name="run1"/>
</field>
<field name="machine"/>
<field name="shot"/>
<field name="run"/>
</field>

</CPO>
</CPOs>

I have to retrieve the data as ;

topinfo.dataprovider
topinfo.entry.user
topinfo.parent_entry.before_leaf.user1

Using XSLT.
Can anybody please help me to solve this.

Thanks in Advance
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xsl variable $node/text() but $node can non-node-set help! Tjerk Wolterink XML 2 08-24-2006 03:28 AM
TreeView - disabling hyperlink on the leaf node mazdotnet ASP .Net 1 08-01-2006 03:24 PM
How to set the node indent property between the parent node and the leaf node viveknatani@gmail.com ASP .Net 0 02-13-2006 07:11 PM
[JTree] click on a node or a leaf Alexandre Jaquet Java 2 11-11-2003 02:15 PM
[JTree] Adding a leaf to a node Alexandre Jaquet Java 0 11-08-2003 06:30 PM



Advertisments