Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Dec 9th, 2005, 12:31 PM   #1
MegaArcon
Programmer
 
MegaArcon's Avatar
 
Join Date: Aug 2005
Posts: 66
Rep Power: 0 MegaArcon is an unknown quantity at this point
Parsing a piece of HTML

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! ^_^
MegaArcon is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC