Next Previous Up Contents
Next: Release Notes
Up: xsdvalidate: Validates against XML Schema
Previous: Usage

### B.50.2 Examples

Here are some examples of using `xsdvalidate`:

    stilts xsdvalidate example-voresource.xml

  Validates the given file against whatever schemas it declares. Success is indicated with a non-error exit.

    stilts xsdvalidate
           doc=example-voresource.xml
           schemaloc='http://www.ivoa.net/xml/VOResource/v1.0=vor-local.xsd'
           topel='{http://www.ivoa.net/xml/RegistryInterface/v1.0}Resource'
           verbose=true

  Validates the named file against whatever schemas it declares, but uses the local file "`vor-local.xsd`" in the current directory as the schema associated with the "`http://www.ivoa.net/xml/VOResource/v1.0`" namespace, rather than using any schema location given in the validated file. It also requires that the top-level element has the given URI and local name; if not, the validation will fail. The `verbose=true` parameter provides some diagnostics to standard output, including indications of which schemas were used and where they were acquired from.

Next Previous Up Contents
Next: Release Notes
Up: xsdvalidate: Validates against XML Schema
Previous: Usage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk