Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool for XML XSD schema validation [closed]

Tags:

validation

xsd

Does anybody know of a command line tool for validating XML with XSD schema?

like image 858
Elroy Avatar asked Feb 21 '09 17:02

Elroy


People also ask

How do I know if my XSD is valid?

Validate XML documents XML documents are validated by the Create method of the XmlReader class. To validate an XML document, construct an XmlReaderSettings object that contains an XML schema definition language (XSD) schema with which to validate the XML document.

Can Notepad++ validate XML?

Conclusion. Notepad++ in combination with the XML Tools Plugin and the XidML schema is a smart way to validate XidML files (basically any XML file where you have a schema).

What is XSD schema validation?

What is XML Schema Definition (XSD)? XML Schema Definition or XSD is a recommendation by the World Wide Web Consortium (W3C) to describe and validate the structure and content of an XML document. It is primarily used to define the elements, attributes and data types the document can contain.


1 Answers

xmllint from the Libxml project

xmllint --schema schema.xsd doc.xml
like image 69
Kaarel Avatar answered Feb 09 '23 20:02

Kaarel