"Ruth E. Brown" wrote: > I'm using the SAX 2.0 parser and want to ignore a DTD. > My XML document declares an external DTD, but I don't have access to > it. I tell the parser not to validate (below), but it still tries to > open the missing DTD file and fails.
If you don't need validation, turn off the "http://apache.org/xml/features/nonvalidating/load-external-dtd" feature [1]. Otherwise, you can register your implementation of the EntityResolver, which returns a *dummy* dtd file. [1] http://xml.apache.org/xerces2-j/features.html -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]