Re: [xml] Validating XML file against XSD Schema
- From: Csaba Raduly <rcsaba gmail com>
- To: 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 12:28:07 +0200
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
To see how it's done from C code, look at the sources of xmllint
--
Life is complex, with real and imaginary parts.
"OK, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]