Re: [xml] PythonBindingsAttrWithNsPb
- From: Daniel Veillard <veillard redhat com>
- To: Claude MARTINI <cmartini2 wanadoo fr>
- Cc: xml gnome org
- Subject: Re: [xml] PythonBindingsAttrWithNsPb
- Date: Sat, 7 Jun 2003 06:01:53 -0400
On Sat, Jun 07, 2003 at 11:11:57AM +0200, Claude MARTINI wrote:
Hello,
I suspect a problem wtih the Python libxmlmods interface (last version) to libxml.
print attr.ns()
[...]
File "C:\Python\lib\site-packages\libxml2.py", line 2285, in ns
if ret is None:raise treeError('xmlNodeGetNs() failed')
libxml2.treeError: xmlNodeGetNs() failed
The attribute has no namespace associated to it. Trying to get it
raises an exception, the same behaviour is emplemented for getting
the element namespace too. This is a standard way in python to raise
the fact that something unexpected happened, why do you consider this
a problem ?
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.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]