problem with libxml2dom

ankit ankitrastogi82 at
Tue Dec 27 07:43:04 CET 2005

I am using libxml2dom package for DOM support in libxml2. There are
some test programs in the package when I try to run that samples it
give me following error:

Traceback (most recent call last):
  File "", line 7, in ?
    d = libxml2dom.parse(sys.argv[1])
  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

Please help me and let me know how to solve this.

More information about the Python-list mailing list