Parsing XML scheme (xsd) to python objects

Chris McDonough chrism at plope.com
Fri Feb 10 01:28:23 EST 2006


You don't just want to parse the XSD data because there lots of XML 
parsers for Python.  You want to validate documents against the schema, 
right?  I haven't yet seen a good XML schema validator for Python. 
libxml2 has good bindings for validating XML against RelaxNG schemas.

- C

Bizarro-02 wrote:
> I have a XML scheme (xsd) from which I have created with xjc  (a java
> binding compiler (JAXB)) my java objects with all the get and set
> methods. Now I have to use this scheme and do the same in python but I
> can't find a tool which can read the scheme. I already tried
> generateDS.py but it couldn't parse the data.
> 
> Does anyone know a tool which compiles my scheme and creates an object
> library in python?
> 
> 
> Regards,
> Matthias
> 



More information about the Python-list mailing list