Re: xsd and python

Steen Manniche <[email protected]>
Newsgroups gmane.comp.python.xml
Organization Dansk BiblioteksCenter a/s
Message-ID <[email protected]>
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  -  [email protected]
> 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

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.