Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UL list serialization, parsing, tree

Status
Not open for further replies.

unlocked291

Technical User
Jan 2, 2010
2
US
<ul>
<li>First</li>
<li>Second
<ul>
<li>Second_1</li>
<li>Second_2
<ul>
<li>Second_2_1</li>
</ul>
</li>
</ul>
</li>
</ul>

How can a UL list can be parsed in order to get to the deepest elements of it (I guess this is called map or tree?) Content moved to a string (serialization) and from the string back to UL list?
 
You could probably loop through the <ul> and using the childNodes property get the next child in order until there are no more.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top