Re: [XML-SIG] Re: Generating XML from scratch

2005-02-11 Thread Rich Salz
OK, I'll bite. Which characteristics make DOM un-pythonic? Quick reply, with some items off the top of my head. XML says that the order of attributes and namespace nodes doesn't matter, just the name and value. This maps naturally to Python dictionary. On the other hand, the order of an elemen

Re: [XML-SIG] Re: Generating XML from scratch

2005-02-11 Thread Dave Kuhlman
On Wed, Feb 09, 2005 at 03:22:09PM -0500, Rich Salz wrote: > >What makes one want to avoid the DOM interface? Do you know any docs/links > >which discuss this further? How tied to Python is your opinion on DOM? > > I think that last question is the key point. > > DOM is very much un-python. OK,

Re: [XML-SIG] Re: Generating XML from scratch

2005-02-09 Thread Frans Englich
On Wednesday 09 February 2005 20:22, Rich Salz wrote: > > What makes one want to avoid the DOM interface? Do you know any > > docs/links which discuss this further? How tied to Python is your opinion > > on DOM? > > I think that last question is the key point. > > DOM is very much un-python. I wou

Re: [XML-SIG] Re: Generating XML from scratch

2005-02-09 Thread Rich Salz
What makes one want to avoid the DOM interface? Do you know any docs/links which discuss this further? How tied to Python is your opinion on DOM? I think that last question is the key point. DOM is very much un-python. If you are "just" generating XML, then you will probably go faster if you use

Re: [XML-SIG] Re: Generating XML from scratch

2005-02-09 Thread Frans Englich
On Wednesday 09 February 2005 19:59, Fredrik Lundh wrote: > rule 1: don't use DOM, if you can avoid it. What's wrong with DOM? What makes one want to avoid the DOM interface? Do you know any docs/links which discuss this further? How tied to Python is your opinion on DOM? Chee