Re: [xml] Python bindings: creating elements with namespace



On Saturday 15 January 2005 18:39, Daniel Veillard wrote:
On Sat, Jan 15, 2005 at 06:00:33PM +0000, Frans Englich wrote:
Hello,

I have trouble with simple element creation with libxml2 via the Python
bindings. I suspect that it is my Python-bindings setup. An example is

demonstrative:
doc = libxml2.newDoc( "1.0" )
top = doc.newChild( "http://www.example.com/namespace";,
"documentNode",

None )

  it expects a pointer to a namespace node, not a namespace string.

Ah, thanks,


                Frans



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]