Sadly, there's not a way to turn off entity resolution in Xerces 1. It's a commonly requested feature, but it seems it's not easy to implement. I haven't even tried - I wouldn't know where to look.
On the bright side, Xerces 2 does promise greater flexibility with entity handling, and I believe this is a possibility there. You may want to grab a CVS snapshot (directions are at the xml.apache.org site) and see what it can do for you. Matt Olsen Programmer Ovid Technologies http://www.ovid.com Dave Nordlund <[EMAIL PROTECTED] To: [EMAIL PROTECTED] nt.com> cc: Sent by: Fax to: [EMAIL PROTECTED] Subject: entities opoint.com 05/22/2001 07:09 PM Please respond to xerces-j-user I'm writing an application that acts on a variety of XML input files and produces another variety of XHTML files. I've been using Xerces, and I have found it great, ....except for one little problem. Xerces attempts to resolve all the entities, such as " and ... I need these things to pass through the parser unchanged. I've dabbled a little with setting the entityResolver... I'm not sure exactly what that does, but it only seems to get called if the input file has a doctype tag... my input files aren't going to be having those. Performance is also an issue, I think having Xerces ignore entites would be much faster than writing a few dozen DTDs for it to have to load and reference. (I'm not sure if that would even work for the standard entities) So.... Is there anyway to get Xerces to simply ignore &entities; all together? Thanks, Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
