[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] libxml2 RELAX NG example code
- From: Daniel Veillard <veillard redhat com>
- To: John Hockaday ga gov au
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 RELAX NG example code
- Date: Thu, 8 Jun 2006 04:15:14 -0400
On Thu, Jun 08, 2006 at 09:30:17AM +1000, John Hockaday ga gov au wrote:
> Todd,
>
> Here is a simple UNIX command lines to validate an XML file using a RELAXNG
> schema:
>
> first set the location of the catalog file;
>
> export SGML_CATALOG_FILES="/public/data/asddgate/etc/sgml/relaxcatalog.xml"
>
> next run the command to validate an XML file using the RELAXNG schema:
>
> /usr/local/bin/xmllint --noout --catalogs --relaxng
> /home/relaxng/anzmeta-1.3.1.rng xmlfile.xml
>
> I have to set the SGML_CATALOG_FILES element because the anzmeta-1.3.1.rng
> schema references many character entity references. Your RELAXNG schema may
> not do that so you may not have to set the SGML_CATALOG_FILES environment
> variable.
and xmllint.c code can be looked at to see how RelaxNG was used.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]