2

Every year or so someone seems to ask the same question. Is there a good Python library to validate xml files comparing them to an xsd schema? The closest I've found is suggestions involving lxml, which unfortunately is not pure python (based on a few C libraries)

1

2 Answers 2

5

I would be surprised to find any pure Python XSD validation libraries. I am aware of the following alternatives for CPython, but they all depend on non-Python code:

Sign up to request clarification or add additional context in comments.

1 Comment

I ended up rolling with lxml. I was originally worried about creating an executable for windows from this and the library not being included. Thankfully with what I'm working with, it looks like I'm good to go
1

I've used XSV for this. It's about four years since any active dev, but it works.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.