[lxml-dev] schema typifier for objectify
Stefan Behnel
stefan_ml at behnel.de
Sat Aug 11 19:08:00 CEST 2007
jholg at gmx.de wrote:
> I'm interested in having a "schema typifier" for lxml.objectify that can
> enrich an instance document with type information taken from an XML Schema
> (xsi:type and/or py:pytype). Similar to the annotate()/pyannotate() stuff,
> but making use of the schema type definitions.
>
> I'm wondering how one realized such thing best: Is there a possibility to
> make use of the lxml/libxml2 validation capabilities, i.e. to somehow hook
> this into the validation proceedings?
Hmm, there was a similar question on the libxml2 mailing list recently about
creating a valid document from a schema. You might take a look there.
http://mail.gnome.org/archives/xml/2007-July/msg00073.html
http://mail.gnome.org/archives/xml/2007-August/msg00056.html
Stefan
More information about the lxml-dev
mailing list