Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How to a Tree Structure in XML?

$
0
0

Hi,

i want to build up a tree structure in XML. Which is the correct way to store a tree with an unlimited depth in xml?

<?xml version="1.0" encoding="utf-8" ?><templates><template id="1"><name></name><description></description><sections><section id="201"><name></name><sections><section id="301"><name></name><sections><section id="401"><name></name></section></sections></section></sections></section></sections></template></templates>

or something like this:

<?xml version="1.0" encoding="utf-8" ?><templates><template id="1"><name></name><description></description><sections><section id="201"><name></name><section id="301"><name></name><section id="401"><name></name></section></section></section></sections></template></templates>

or another way?


Best regards,
Yavuz B.

My Sharepoint and Enterprise 2.0 Blog http://www.bogazci.com |Microsoft Sharepoint Resources & Blog List



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>