472,142 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

Python base distribution come with a validating XML parser?

Hi,

Basic XML questions,

I have a .xml file I want to validate against a .xsd file...

Does the Python base distribution come with a validating XML parser?

I want to make sure the elements in my xml file vs. the elements
defined in my xsd are a match.

I could parse both XML and xsd elements to lists and compare the
lists, but I imagine the validation process can do this too...

Some of this is basic stuff - just a link to a site or doc is
sufficient.

Thanks.
Jul 25 '08 #1
1 1281
Hi,
>
Basic XML questions,

I have a .xml file I want to validate against a .xsd file...

Does the Python base distribution come with a validating XML parser?

I want to make sure the elements in my xml file vs. the elements
defined in my xsd are a match.

I could parse both XML and xsd elements to lists and compare the
lists, but I imagine the validation process can do this too...

Some of this is basic stuff - just a link to a site or doc is
sufficient.

Thanks.


I think you are looking for lxml http://codespeak.net/lxml/

Jul 25 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.