problem with libxml2dom

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ankit

    #1

    problem with libxml2dom

    Hi
    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 "prettyprint.py ", line 7, in ?
    d = libxml2dom.pars e(sys.argv[1])
    File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line
    472, in parse
    return parseFile(strea m_or_string, html)
    File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line
    484, in parseFile
    return Document(Node_p arseFile(filena me, html))
    File
    "/usr/lib/python2.2/site-packages/libxml2dom/macrolib/macrolib.py",
    line 431, in parseFile
    libxml2mod.xmlC txtUseOptions(c ontext, XML_PARSE_NOERR OR |
    XML_PARSE_NOWAR NING | XML_PARSE_NONET )
    AttributeError: 'module' object has no attribute 'xmlCtxtUseOpti ons'

    This error comes to all that examples where libxml2dom.pars e() is
    called.


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

Working...