[EMAIL PROTECTED] wrote on 03/30/2008 02:17:01 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.

> (I'm not sure offhand whether there's a SAX equivalent.)

There isn't one. SAX has no mechanism for reporting entity reference
boundaries within attribute values.

> If you want to suppress the other kinds of normalization applied to
> attributes, I would suggest that you don't want attributes in the
> first place. Change your document design so this information is
> carried by a child element. (See much past discussion -- just about
> everywhere that XML is discussed! -- about when to use attributes
> vs. child elements; this is one classic example where there is a
> practical reason rather than just one of style.)
>
> ______________________________________
> "... Three things see no end: A loop with exit code done wrong,
> A semaphore untested, And the change that comes along. ..."
>  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.
> org/pegasus/songs/threes-rev-11.html)

[1]
http://mail-archives.apache.org/mod_mbox/xerces-j-dev/200109.mbox/[EMAIL 
PROTECTED]

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]

Reply via email to