Hi all,

A simple invocation with libxml2 python binding raises AttributeError.

+++++++++
>>python -c 'import libxml2; libxml2.HTML_PARSE_RECOVER' Traceback (most recent 
>>call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'
+++++++++

Am I doing something wrong OR do we need to patch libxml2.py? In second case 
the patch should be:

+++++++++++
--- /usr/local/pkgs/python-2.6.5/lib/python2.6/site-packages/libxml2.py 
2010-06-09 11:28:55.000000000 +0530
+++ libxml2.py  2011-01-04 14:47:28.379292000 +0530
@@ -7682,11 +7682,15 @@
 XPATH_INVALID_CHAR_ERROR = 21

 # htmlParserOption
+HTML_PARSE_RECOVER = 1
+HTML_PARSE_NODEFDTD = 4
 HTML_PARSE_NOERROR = 32
 HTML_PARSE_NOWARNING = 64
 HTML_PARSE_PEDANTIC = 128
 HTML_PARSE_NOBLANKS = 256
 HTML_PARSE_NONET = 2048
+HTML_PARSE_NOIMPLIED = 8192
+HTML_PARSE_COMPACT = 65536

 # xmlRelaxNGValidErr
 XML_RELAXNG_OK = 0
+++++++++++

How do I contribute this patch? Please help.

Thanks,
Vikas
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to