Re: [xml] Validating XML file against XSD Schema
- From: Mathieu Malaterre <mathieu malaterre gmail com>
- To: Csaba Raduly <rcsaba gmail com>
- Cc: Andrew Hartley <andrew hartley bcs org uk>, libxml gnome <xml gnome org>
- Subject: Re: [xml] Validating XML file against XSD Schema
- Date: Thu, 6 May 2010 15:28:12 +0200
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]