Validation an xml doc against an XSD spec

2 views
Skip to first unread message

Goldfish

unread,
Oct 2, 2008, 1:21:08 PM10/2/08
to Amara
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!

Goldfish

unread,
Oct 2, 2008, 1:48:10 PM10/2/08
to Amara
I have now noticed that this group relocated. I have re-posted to the
new group, and withdraw my question from this group.

Thanks.

Uche Ogbuji

unread,
Oct 3, 2008, 2:48:58 AM10/3/08
to amara...@googlegroups.com
Goldfish wrote:
> I have now noticed that this group relocated. I have re-posted to the
> new group, and withdraw my question from this group.
>

No worries. Thanks for putting up with the inconvenience of our moves.


--
Uche Ogbuji http://uche.ogbuji.net
Founding Partner, Zepheira http://zepheira.com
Linked-in profile: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/

Reply all
Reply to author
Forward
0 new messages