Re: [xml] Validating XML file against XSD Schema



On Thu, May 6, 2010 at 12:28 PM, Csaba Raduly <rcsaba gmail com> wrote:
On Thu, May 6, 2010 at 11:47 AM, Andrew Hartley  wrote:

Would someone please let me know how I can validate an XML file against its
XSD Schema file.  If there are validation errors I would then like to
extract the human readable error description.

From the commandline:
xmllint --noout --schema foo.xsd foo.xml


Watch out for --xinclude, in which case you have to use --postvalid. I
found it the hard way.

-- 
Mathieu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]