Yo all! ^_^
I've got a web page that dynamically creates a tree-like directory structure with given input by the user. It would be in a form like the following:
...
<ul id="root">
<ul>
<li>
Dir1 <button onclick='add()'>Add another</button>
</li>
</ul>
<ul>
<li>
Dir2 <button onclick='add()'>Add another</button>
</li>
<ul>
<li>
file_in_dir2 <button onclick='add()'>Add another</button>
</li>
</ul>
</ul>
</ul>
...
(Sure hope the spacing worked out ok) The overkill on the <ul> elements is so that the dir will have a tree-like structure when it is rendered in the browser. Anyhow, I need to generate an xml document from the information on the form. The things that are in the data fields are trivial, (at least they should be) but this data structrue is giving me some greef.
How exactly do I pass this onto python to parse and save in the xml file? Any thoughts?
Thanks! ^_^