[xml] Patch to enable xmlSchemaSetValidErrors in python



Hi,

I see that there is support for XML Schema in the python bindings, but it looks like xmlSchemaSetValidErrors was left out of libxmlMethods at the end of the file. This patch puts it in. Also, is there a reason
libxml_xmlSchemaFreeValidCtxt is ifdef'd out?

Brent
--

-------------------------------------------------------------------------

"The programmer, like the poet, works only slightly removed from pure
 thought-stuff.  He builds his castles in the air, from air, creating
 by exertion of the imagination.  Few media of creation are so
 flexible, so easy to polish and rework, so readily capable of
 realizing grand conceptual structures."
                        -- Frederick Brooks, Jr., The Mythical Man Month
--- libxml.c~   2004-08-22 08:49:42.000000000 -0500
+++ libxml.c    2004-10-26 18:48:31.000000000 -0500
@@ -3460,6 +3460,7 @@
 #ifdef LIBXML_SCHEMAS_ENABLED
     {(char *)"xmlRelaxNGSetValidErrors", libxml_xmlRelaxNGSetValidErrors, METH_VARARGS, NULL},
     {(char *)"xmlRelaxNGFreeValidCtxt", libxml_xmlRelaxNGFreeValidCtxt, METH_VARARGS, NULL},
+    {(char *)"xmlSchemaSetValidErrors", libxml_xmlSchemaSetValidErrors, METH_VARARGS, NULL},
 #endif
 #ifdef LIBXML_C14N_ENABLED
 #ifdef LIBXML_OUTPUT_ENABLED


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]