Re: Parsing XML scheme (xsd) to python objects

2006-02-10 Thread Bizarro-02
Yes, documents should also be validated against the schema. I finally
managed to compile my schema with generateDS.py but I haven't tested
the result because of my poor knowledge of Python. So I have to wait
until the group does which wanted to use my schema.
Thanks for your answer!

Matthias

-- 
http://mail.python.org/mailman/listinfo/python-list


Parsing XML scheme (xsd) to python objects

2006-02-09 Thread Bizarro-02
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

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parsing XML scheme (xsd) to python objects

2006-02-09 Thread Chris McDonough
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
 
-- 
http://mail.python.org/mailman/listinfo/python-list