Hello Senthil. 2007/12/18, Senthil Nathan <[EMAIL PROTECTED]>: > Hi, > I would like to know is there any examples available with libxml2, > which validates the xml files against a xsd schema. > > I guess, xml schema is still under development in libxml2. > > But please point to me, if there is an example on that.
No example for that on the web site, but if you look at the code for the xmllint program [1] that comes with libxml2 you can find an example. Look for the code that is used when xmllint is invoked with --schema. This is mostly code guarded with if (schema != NULL) I think. Maybe some clever searches at codesearch.google.com can come up with some examples too. Regards, Aron [1] http://svn.gnome.org/viewvc/libxml2/trunk/xmllint.c?view=markup _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
