A
ankit
Hi,
I am working with libxml2dom package for having DOM support with
libxml2.
There are some test examples are given along with the package but when
I try to run that, it gives me following error:
Traceback (most recent call last):
File "namespaces.py", line 23, in ?
document = libxml2dom.parse("test_ns.xml")
File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line
472, in parse
return parseFile(stream_or_string, html)
File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line
484, in parseFile
return Document(Node_parseFile(filename, html))
File
"/usr/lib/python2.2/site-packages/libxml2dom/macrolib/macrolib.py",
line 431, in parseFile
libxml2mod.xmlCtxtUseOptions(context, XML_PARSE_NOERROR |
XML_PARSE_NOWARNING | XML_PARSE_NONET)
AttributeError: 'module' object has no attribute 'xmlCtxtUseOptions'
This error comes to all that examples where libxml2dom.parse() is get
called.
Is there something wrong with the package OR I am wrong somewhere .
please let me know.
I am working with libxml2dom package for having DOM support with
libxml2.
There are some test examples are given along with the package but when
I try to run that, it gives me following error:
Traceback (most recent call last):
File "namespaces.py", line 23, in ?
document = libxml2dom.parse("test_ns.xml")
File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line
472, in parse
return parseFile(stream_or_string, html)
File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line
484, in parseFile
return Document(Node_parseFile(filename, html))
File
"/usr/lib/python2.2/site-packages/libxml2dom/macrolib/macrolib.py",
line 431, in parseFile
libxml2mod.xmlCtxtUseOptions(context, XML_PARSE_NOERROR |
XML_PARSE_NOWARNING | XML_PARSE_NONET)
AttributeError: 'module' object has no attribute 'xmlCtxtUseOptions'
This error comes to all that examples where libxml2dom.parse() is get
called.
Is there something wrong with the package OR I am wrong somewhere .
please let me know.