My project has recently developed an XSD spec for the XML docs that we
parse. I started using amara this week as a replacement for a 4-year
old parser. (BTW, I love amara! It makes XML a piece of cake in
python.)
I was wondering if there is any API that will validate incoming xml
docs as meeting the XSD spec. I tried searching on google and inside
the amara XML toolkit manual, but I couldn't find any answer for this.
So far, the only validation I have is using code completion inside
Eclipse, and even that requires that I re-open a test.xml doc
everytime I change the schema file.
The project is Spring Python (
http://springpython.webfactional.com),
and some sample XML we have to parse is located at
https://fisheye.springframework.org/browse/se-springpython-py/trunk/springpython/test/springpythontest/support/aopApplicationContext.xml?r=134,
while our XSD specs are stored at
https://fisheye.springframework.org/browse/se-springpython-py/trunk/springpython/xml/schema/context.
I know...the XML is a little clunky, but we just want to support this
current version until a newer, better spec can be devised. In the
meantime, it would be nice to confirm docs are valid before trying to
get info out of them.
The version of amara I have is 1.2 (using easy_install), and I also
generally use python 2.5.
Thanks!