Re: [xml] Python bindings: creating elements with namespace
- From: Daniel Veillard <veillard redhat com>
- To: Frans Englich <frans englich telia com>
- Cc: xml gnome org
- Subject: Re: [xml] Python bindings: creating elements with namespace
- Date: Sat, 15 Jan 2005 13:39:40 -0500
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]