Python base distribution come with a validating XML parser?

G

goldtech

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.
 
R

Rüdiger Werner

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top