[EMAIL PROTECTED] wrote on 03/30/2008 05:53:51 PM: > > > > If you need to know entity-reference boundaries, you can get that > > > information by asking the parser to generate a DOM which has Entity > > > Reference Nodes and then looking at the children of the attribute > > > nodes. > > > > Xerces-J doesn't support that. See the rationale here [1] from Andy Clark. > > Beg pardon? There's a long-standing Feature for the DOM parser, > create-entity-ref-nodes, which toggles this... and in fact, the > documentation says it defaults to true. > > Are you confused, or is the documentation out of date?
That feature only has an effect on entity references which appear in element content. Xerces has no support [1][2] for preserving entity references in attribute values. [1] http://marc.info/?t=117027061700003&r=1&w=2 [2] http://issues.apache.org/jira/browse/XERCESJ-1225 Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]