We could use simple online tools to validate xml files against a single schema. But if we have more than one schema files, which are sub schemas of the base schema, needed to validate a single xml file, we could use some other tools which are availble freely.
I used libxml which works better. But for windows-64 bit platform, binary distribution is not available. We need to compile the source files. For linux, compilation would be easy.
Run xmllint from the "bin" folder
If there are any errors it will be shown in the command prompt.
I used libxml which works better. But for windows-64 bit platform, binary distribution is not available. We need to compile the source files. For linux, compilation would be easy.
Run xmllint from the "bin" folder
# xmllint --noout --schema <BASE_XSD_FILE> <XML_FILE_TO_BE_VALIDATED>
If there are any errors it will be shown in the command prompt.
No comments:
Post a Comment