[XML-SIG] xsd and python
Steen Manniche
stm at dbc.dk
Wed Sep 12 14:25:26 CEST 2007
Wednesday 12 September 2007 skrev Stefan Behnel:
>
> Jachym Cepicky wrote:
> > could anybody point me to best documentation resource, where I could
> > learn, how to work with XSD and python?
> >
> > I hope, it would be possible to generate XML based on XSD or maybe some
> > Python code according to to it. I have no clue, whether this is possible
> > or if it is possible in general, but not with python yet.
>
> I'm not aware of any Python tool that "generates XML based on XSD" (whatever
> that means), but there are a couple of tools that support validation with XML
> Schema, such as lxml.etree.
>
> http://codespeak.net/lxml/
> http://codespeak.net/lxml/validation.html
>
> Stefan
> _______________________________________________
> XML-SIG maillist - XML-SIG at python.org
> http://mail.python.org/mailman/listinfo/xml-sig
>
>
If you by "generate xml from xsd" mean to make an xml instance of an xml schema, then trang[1] does that job.
[1]:http://www.thaiopensource.com/relaxng/trang.html, also available through dpkg for debian and ubuntu
--
Steen Manniche, Programmør.
Dansk BiblioteksCenter A/S
Tempovej 7-11
2750 Ballerup
More information about the XML-SIG
mailing list