Re: [xml] Extent of support for XSD validation?



On Sun, 2012-11-11 at 11:04 -0600, Ramon F Herrera wrote:

The *xmllint* tool does not seem to be XSD-aware.
xmllint --help should suggest otherwise to you, as should the manual
page.

 I did find some 
comments about XSD in the archives. I naively assumed that adding the 
following line would be enough to direct the parser to use such 
validating schema:

<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="XYZ.xsd">

No.


TIA,

You didn't actually ask a question :) but I'm guessing you are looking
for,
    xmllint --noout --schema XYZ.xsd myfile.xml

Liam



-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of "Beginning XML", Wrox, 2012




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