Re: Create an XML document

2007-05-23 Thread kyosohma
On May 22, 7:30 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am attempting to create an XML document dynamically with Python. It > > needs the following format: > > > > > > >1179775800 > >

Re: Create an XML document

2007-05-22 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: > I am attempting to create an XML document dynamically with Python. It > needs the following format: > > > > 1179775800 > 1800 > > Try lxml.objectify. http://codespeak.net/lxml/dev/objectify.h

Re: Create an XML document

2007-05-22 Thread kyosohma
On May 22, 10:00 am, [EMAIL PROTECTED] wrote: > Hi all, > > I am attempting to create an XML document dynamically with Python. It > needs the following format: > > > > 1179775800 > 1800 > > > > I trie

Re: Create an XML document

2007-05-22 Thread Matimus
> How do I get Python to put values into the elements by tag name? The same way you create put in new elements. Only, you use 'doc.createTextNode' instead of 'doc.createElement' to create it. from xml.dom.minidom import Document doc = Document() zappt = doc.createElement('zAppointments') zap

Re: Create an XML document

2007-05-22 Thread Nis Jørgensen
[EMAIL PROTECTED] skrev: > Hi all, > > I am attempting to create an XML document dynamically with Python. It > needs the following format: > > > > 1179775800 > 1800 > > > > I tried using minidom w

Create an XML document

2007-05-22 Thread kyosohma
Hi all, I am attempting to create an XML document dynamically with Python. It needs the following format: 1179775800 1800 I tried using minidom with the following code: from xml.dom.minidom import Document doc = Document() zappt