/*Hello all,
I have a dtd file called Product.dtd in my computer. It is located in the
same directory where the my executable is also located. My xml file is also
in the same folder. Are the following statements enough to validate if the
file that is created is according to the dtd??? also should there be a
DOCType declaration in the xml file that is being validated??? parser_
object is a XercesDOMParser object... Thanks in advance*/

parser_.setValidationScheme(XercesDOMParser::Val_Always);
parser_.setDoNamespaces(false);
parser_.setDoSchema(false);
parser_.setLoadExternalDTD(true);
parser_.setSkipDTDValidation(false);
parser_.loadGrammar("Product.dtd",Grammar::DTDGrammarType,true);
-- 
View this message in context: 
http://www.nabble.com/Are-the-following-statements-enough-to-verify-that-the-xml-file-is-according-to-%22Product.dtd%22-----tp15806489p15806489.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to