Sometimes, I have to check the validity of some big xml files against a xsd file.The biggest xml file I received had a size close to 1.5GB.xmllint took all my RAM and almost all the swap space, for a total memory usage of 18GB.Consequently, the validation process lasted for 24 hours.My question: Is there an alternative to xmllint --schema that consumes less memory, perhaps making use of some streaming features instead of loading the file to memory?
Alternative to xmllint to check xml validity
linux;xml
I did not test these validators, but from the top of my mind / little search:XMLStarlet - can be used for other things as wellmsv -  Sun multi schema validatorHaXML - haskell xml tools contains command line utilities (one is a validator)xsltproc should also verify documents at startupThere are plenty more option as most utilities will automatically validate the xml document, like e.g. xsltproc.