From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Nov 12 1999 - 12:55:03 EST
On Fri, Nov 12, 1999 at 11:16:52AM -0500, Sean Han wrote:
>
> Hi, everyone:
>
> Could anyone tell me how to validate a XML file with an external DTD? Or is
> there any sample code about this?
You can use the --valid option of the tester program included in libxml
source distribution, or in your C code set
extern int xmlDoValidityCheckingDefaultValue;
xmlDoValidityCheckingDefaultValue = 1;
before calling the parser function, it's ugly but I didn't finalized the
validation interfaces yet.
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux, WWW, rpmfind, Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | rpm2html, XML, http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe. ---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:51 EDT