XML doc generation

Paul Prescod paulp at ActiveState.com
Mon Jan 22 20:44:46 EST 2001


Jonathan Pennington wrote:
> 
> I need some XML help. Here's a snippet from the XML How-To:
> <snip>
> You can also construct a DOM tree yourself, and convert it to XML;
> this is often a more flexible way of producing XML output than simply
> writing <tag1>...</tag1> to a file.
> <snip>
> Unfortunately, I can't find an example of this.

If you understand how to put raw text tags then I would suggest you just
do that as the simplest thing. I've been processing XML for a long, long
time and I hardly ever find it easier to build a tree and then serialize
it. It is more often best to do the simplest thing...

 Paul




More information about the Python-list mailing list