xml.dom

Paul Prescod paulp at ActiveState.com
Fri Dec 8 17:52:34 CET 2000


Magnus Heino wrote:
> 
> Hi.
> 
> How do I build an xmldocument using something in xml.dom?

I'm not sure what you are asking. Here's a potential answer if the
question is: "How do I parse an XML document into a DOM using the DOM
implementation that ships with Python 2.0."

>>> from xml.dom import minidom
>>> dom = minidom.Parse("c:\\temp\\test.xml")

 Paul Prescod




More information about the Python-list mailing list