DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Problem Traversing a Tree

  1. #1
    Vivek Guest

    Problem Traversing a Tree


    I have a problem Traversing a tree can any body help me.
    Say I have

    <TABLE>
    <TITLE>Server</TITLE>
    <COLUMNS>
    <INFOGROUPTYPE>General</INFOGROUPTYPE>
    <COLUMN>
    <HEADING>Component Name</HEADING>
    <INFO>Component Name</INFO>
    <FORMAT>Format</FORMAT>
    </COLUMN>

    .............
    </COLUMNS>
    </TABLE>
    Element Table has Title as a child, and columns also as child which has column
    as a child. which has heading as child
    How do I access the Text Node Component Name




  2. #2
    Russell Jones Guest

    Re: Problem Traversing a Tree

    With DOM, you could use
    SelectSingleNode("TABLE/TITLE/COLUMNS/COLUMN/HEADING").text

    With XSLT, you would write <xsl:value-of
    select="TABLE/TITLE/COLUMNS/COLUMN/HEADING"/>

    Vivek" <vivek_thatte@hotmail.com> wrote in message
    news:3adc8a13$1@news.devx.com...
    >
    > I have a problem Traversing a tree can any body help me.
    > Say I have
    >
    > <TABLE>
    > <TITLE>Server</TITLE>
    > <COLUMNS>
    > <INFOGROUPTYPE>General</INFOGROUPTYPE>
    > <COLUMN>
    > <HEADING>Component Name</HEADING>
    > <INFO>Component Name</INFO>
    > <FORMAT>Format</FORMAT>
    > </COLUMN>
    >
    > ............
    > </COLUMNS>
    > </TABLE>
    > Element Table has Title as a child, and columns also as child which has

    column
    > as a child. which has heading as child
    > How do I access the Text Node Component Name
    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center