Python & DOM

Drazen Gemic here at there.net
Tue May 24 08:07:53 EDT 2005


On Mon, 23 May 2005 22:37:09 -0700, simon.dahlbacka at gmail.com wrote:

> textNode = yourDocumentElement.createTextNode("the content")
> yourElement.appendChild(textNode)
>
Thanks, it works, but 'yourDocumentElement' needs to be of type
'document'. The name leads to conclusion that it needs to be
a root element of the document.

DG





More information about the Python-list mailing list