Xerces-J has an option to control whether EntityReference notes are generated in the DOM output. See http://xerces.apache.org/xerces-j/features.html ... specifically, the create-entity-ref-nodes feature.
I haven't checked whether Xerces-C offers the same choice, but I would be a bit surprised if it doesn't. ______________________________________ "... 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)