Click to See Complete Forum and Search --> : Problem Traversing a Tree


Vivek
04-17-2001, 02:23 PM
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

Russell Jones
04-18-2001, 12:46 AM
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
>
>
>