Re: [xml] Patch to enable xmlSchemaSetValidErrors in python



Daniel Veillard wrote:
On Tue, Oct 26, 2004 at 07:17:27PM -0500, Brent Hendricks wrote:

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


  Seems harmless applied, will commit later if it doesnt break something

Thanks.

libxml_xmlSchemaFreeValidCtxt is ifdef'd out?


  Because it directly conflicts with the libxml_xmlSchemaFreeValidCtxt
automatically generated in libxml2-py.c !

Ah, sure enough. I confess I don't understand the autogenerate code very well.

Speaking of which: I'd like to get python bindings for xmlValidateDtd working. I can go ahead and put code in libxml.c but I thought I would first try to understand why it's being excluded from autogeneration. I see that it's listed in doc/libxml2-api.xml, but does not appear in the generated libxml2-py.c.

I tried walking through generate.py but it's somewhat opaque....
Any pointers?

Thanks,
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



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