Dear Xerces list,

Can anyone provide advice, or point me to docs that show how to use a
specific DTD when parsing and validating a document with the Xerces-C
SAX2 API?

Specifically, I would like to use the SAX2XMLReader class to parse an
XML document that may or may not have a DOCTYPE specifying a DTD. I
would like to *ignore* any internally referenced DTDs for validation
purposes (if it is still parsed for other reasons, that is fine), and
validate the document against a different DTD that I will specify.

Is this possible? Is it just wrong-headed to attempt this with DTDs?
(It seems specifically encouraged by XML Schema). Considering how
DTDs provide additional document content (and schemas really don't),
is this just disallowed altogether?

Thanks!

Todd Ditchendorf

Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us

Reply via email to