Hi everyone, My simple question is: how can I let the SAXParser do a validation against the DTD that I have stated at the beginning of the XML-file.
I have the following line in the XML-file: <!DOCTYPE adc:adConnexion SYSTEM "IFRAadConnexion1_0.dtd"> When running the sample SAXCount it gets validated but when trying to do the same in my own program it doesn't bother checking validity against the dtd-file. Shouldn't the following lines be enough???: parser->setDoValidation (true); parser->setDoNamespaces (true); I've attached a DocumentHandler to the parser and overriden the methods startElement, endElement etc., do I need to attach an ErrorHandler and override it's methods as well to make it work? (I tried that too but can't manage to get the XML validated.) Thanks a lot for any help! Jole PS. I have looked in the FAQ and searched the Mail Archives but been unable to find an answer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
