Re: [xml] XSD validation example needed
- From: Samuel Díaz García <samueldg arcoscom com>
- To: Kasimier Buchcik <kbuchcik 4commerce de>
- Cc: xml gnome org
- Subject: Re: [xml] XSD validation example needed
- Date: Tue, 25 Jan 2005 17:05:47 +0100
Thanks, but I need some API examples about it, I'm using the API in my C
app.
Thanks again.
Samuel Díaz García
Director Gerente
ArcosCom Wireless, S.L.L.
mailto:samueldg arcoscom com
http://www.arcoscom.com
móvil: 651 93 72 48
tlfn/fax: 956 70 13 15
Kasimier Buchcik wrote:
Hi,
Samuel Díaz García wrote:
Well, I found the testschema.c file, thanks, but ...
... if my ROOT element has an schema asigned using this directive into
the XML file?
<MYROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="<xsd-uri>">
How can I validate it?
Taking the attrib value first, downloading and validate?
[...]
Have a look at [1].
1) I have a downloaded XML with an external reference to a XSD
schema and I need to know if the XML is valid or not.
2) Another case could be to have the XSD file in local to perform
the validation against it.
If you know what XML Schemata are in use you could use XML catalogs to
avoid Libxml2 grabbing them from the net.
I need to know what API functions and in what order use them in the
two exposed cases.
Thanks for your help & sorry for my english.
API Doc
http://xmlsoft.org/html/libxml-xmlschemas.html
C Code example
testSchemas.c in the source distribution
[...]
[1] http://mail.gnome.org/archives/xml/2004-November/msg00025.html
Cheers,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]