Re: automatically building Python data structures from DOM trees?

Guido van Rossum <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
On 12/2/05, Han-Wen Nienhuys <[email protected]> wrote:
> Guido van Rossum wrote:
> >
> > I wrote something like this except it just parses XML -- it doesn't go
> > through (mini)DOM. It also *produces* XML from the Python data
> > structures at request.
> >
> > It's not yet integrated anywhere but you can get it from SourceForge:
> > python.org/sf/1337648.
> >
> > I've been looking for feedback on this package -- let me know if it's
> > useful for you!
> >
>
>  From the comments, I gather that it doesn't preserve the ordering of
> elements in the XML file. That would make it useless for me.

It preserves the relative order of subelements of the *same* type
(which are stored in a list, to match your example), but indeed it
currently doesn't preserve the order of subelements of different
types. I'll note that as a feature request.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
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.