Title: Not Resolving Internal Entities

Hi,

I am wondering does anyone have any thoughts on this.   We are trying not to resolve internal entities as we using Xerces on the inbound to a repository and we cannot drop peoples internal entities. 

The approach we are taking now after trying numerous other approaches is based on something that was posted to the list some time back.

In the internal entity declaration we are adding values of internal entities that basically map back to the entity reference as follows:

If I had an entity declaration
<!ENTITY myname "Una Kearns">

I would add
<!ENTITY myname "&#38;#38;myname;">

We then encounter the following problem in the serializer. 

The serializer in function getEntityRef  changes all & to &amp;
so we end up with &amp;myname;

If we then comment out this function for the serializer it works fine for our munged entities but then breaks true occurances of &amp; as it writes out & for incoming &amp;

Has anyone successfully worked around this?

Thanks,
Una

Reply via email to