Retrive the entire path from the leaf node

Discussion in 'XML' started by ananda121, Sep 23, 2009.

  1. ananda121

    ananda121

    Joined:
    Sep 23, 2009
    Messages:
    1
    Likes Received:
    0
    Hi All,

    I have a xml like :

    <?xml version="1.0" encoding="UTF-8"?>
    <CPOs xmlns:fn="link1" xmlns:xs="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
     
    ananda121, Sep 23, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. viveknatani@gmail.com
    Replies:
    0
    Views:
    1,925
    viveknatani@gmail.com
    Feb 13, 2006
  2. Alexandre Jaquet

    [JTree] Adding a leaf to a node

    Alexandre Jaquet, Nov 8, 2003, in forum: Java
    Replies:
    0
    Views:
    743
    Alexandre Jaquet
    Nov 8, 2003
  3. Alexandre Jaquet

    [JTree] click on a node or a leaf

    Alexandre Jaquet, Nov 10, 2003, in forum: Java
    Replies:
    2
    Views:
    5,402
    Matthew Zimmer
    Nov 11, 2003
  4. mazdotnet
    Replies:
    1
    Views:
    8,112
    mazdotnet
    Aug 1, 2006
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,726
    Dimitre Novatchev
    Aug 24, 2006
  6. Uriah Piddle

    Leaf Node in SiteMapPath

    Uriah Piddle, Sep 15, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    983
    Uriah Piddle
    Sep 17, 2006
  7. daniel.bron@gmail.com

    Altering a leaf node

    daniel.bron@gmail.com, Nov 14, 2006, in forum: XML
    Replies:
    4
    Views:
    665
    daniel.bron@gmail.com
    Nov 15, 2006
  8. William Main

    Fixed bug in IE Treeview Webcontrol when clicking on leaf node.

    William Main, Feb 1, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    516
    William Main
    Feb 1, 2005
Loading...