Saving a tree structure from a treeview and restoring the structure
-
I have an application that displays a treeview with the following structure: + TreeRoot +-+ Heading | +-+ DataElement | +-+ DataElement | +-+ Heading | +-+ DataElement | +-+ DataElement +-+ Heading | +-+ DataElement . . . Note the data order is important and must be preserved. I have stored this in a XML file like this. First data<\ DataElement> Second data<\ DateElement> First nested data<\ DataElement> Second nested data<\ DataElement> <\ heading> <\heading> data<\DataElement> <\heading> . . . <\root> I am able to read and writhe this data to and from the tree and update the xml file. However I am not able to describe this structure in a Schema. Is there a method that would be univerally portable to keep this structure. I would prefer not to use H1, H2, H3 . . . method for the nested headers. Thanks for the help.