You can validate your xml file with xml schema in many ways,but in Linux system,one simple way is using xmllint .
If you don't have xmllint package,just install it from terminal
$sudo apt-get install xmllint
Now to validate a xml file called test.xml with the corresponding xml schema file test.xsd,just type in terminal as given below
$xmllint --noout --schema test.xsd test.xml
output
test.xml validates
thank you for reading
cheers !!!
sGk
No comments:
Post a Comment