List Info

Thread: Necessary steps involved in validating against an XSD?




Necessary steps involved in validating against an XSD?
user name
2007-02-01 04:50:23
Hello!

I have looked at the code in xmllint.c because I need only
the part that validates a XML against a schema, that is:
"xmllint --schema xsdfile.xsd xmlfile.xml"

Since I'm a Delphi programmer and I'm not too experienced
with C I find the code in xmllint.c a bit confusing however
(and I cannot debug either).

I was hoping that maby some kind soul would outline the
necessary steps involved for me in XSD validation using
LIBXML2? I'm using the latest version.

Regards,
Erik F. Andersen
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

Re: Necessary steps involved in validating against an XSD?
user name
2007-02-02 03:40:00
On Thu, Feb 01, 2007 at 11:50:23AM +0100, Erik F. Andersen
wrote:
> Hello!
> 
> I have looked at the code in xmllint.c because I need
only the part that validates a XML against a schema, that
is:
> "xmllint --schema xsdfile.xsd xmlfile.xml"
> 
> Since I'm a Delphi programmer and I'm not too
experienced with C I find the code in xmllint.c a bit
confusing however (and I cannot debug either).
> 
> I was hoping that maby some kind soul would outline the
necessary steps involved for me in XSD validation using
LIBXML2? I'm using the latest version.

  Check the testSchemas.c whose source is available in the
distribution,
it should be quite easier to understand.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/v
irtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )