Python and XML Validation

 In python

While recently working on a project where we had included, nested, embedded, or inherited XSDs, I had errors while getting the XML to validate using LXML.  The solution ended up being that when you give LXML the schema location, the included XSD files must be in the working directory for it to find them.  There you go.  I didn’t find it anywhere on the internet.  Enjoy!

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Start typing and press Enter to search