[XML-SIG] More Pythonic XML creation

John W. Shipman john at nmt.edu
Fri Feb 11 01:27:16 CET 2005

Thanks for all the replies to my inquiry about creation
of documents from scratch using the DOM.

I've rewritten my document "Python and the XML DOM" to
conform to the way the Python 2.3 xml.dom.minidom module
wants you to use factory methods: see section 6, `Creating
a document from scratch' in this document:


Also included in this document is a module that makes
document creation more Pythonic.  It is described in
section 7 of the document, and section 8 contains a
"literate programming" presentation of the code of the
new module.

I would greatly appreciate any comments.

Best regards,
John Shipman (john at nmt.edu), Applications Specialist, NM Tech Computer Center,
Speare 119, Socorro, NM 87801, (505) 835-5950, http://www.nmt.edu/~john
  ``Let's go outside and commiserate with nature.''  --Dave Farber

More information about the XML-SIG mailing list