problems with libxml2dom

ankit ankitrastogi82 at
Tue Dec 27 08:11:13 CET 2005

I am working with libxml2dom package for having DOM support with
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 "", line 23, in ?
    document = libxml2dom.parse("test_ns.xml")
  File "/usr/lib/python2.2/site-packages/libxml2dom/", line
472, in parse
    return parseFile(stream_or_string, html)
  File "/usr/lib/python2.2/site-packages/libxml2dom/", line
484, in parseFile
    return Document(Node_parseFile(filename, html))
line 431, in parseFile
    libxml2mod.xmlCtxtUseOptions(context, XML_PARSE_NOERROR |
AttributeError: 'module' object has no attribute 'xmlCtxtUseOptions'

This error comes to all that examples where libxml2dom.parse() is get

Is there something wrong with the package OR I am wrong somewhere .

please let me know.

More information about the Python-list mailing list