Re: automatically building Python data structures from DOM trees?

Han-Wen Nienhuys <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Uche Ogbuji wrote:
> Thanks, Luis.
> 
> Yep, and 'bar.bla[1].id == "2"' would work out of the box with Amara.
> 
> One question, Han-Wen, do you have to use minidom as the source, or can
> you go from straight XML?  Just seems unnecessary to parse to minidom
> and then bind.

No, but I'd like to have the source as a complete, in-memory tree. I 
thought that DOM was just a word for such a tree. I'm a complete XML 
newbie.

For the moment, I have concocted something simple with new.classobj() - 
if I need anything more complex, I suppose that I'll have a look  at Amara.

-- 
  Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen
_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.