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

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



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.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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