Wednesday, January 28, 2009

Validating XML against Schema

Use following command to do it

xmllint --noout --schema schema.xsd file.xml

eg: Shell> xmllint --noout --schema ../xsd/CdrFile.xsd test.xml

Output>>>
test.xml validates

No comments: