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

On Sat, Jan 15, 2005 at 06:00:33PM +0000, Frans Englich wrote:


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 

doc = libxml2.newDoc( "1.0" )
top = doc.newChild( "";, "documentNode", 
None )

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


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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