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
> >
[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
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
> 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
[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
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