Ignoring entity references
843834Apr 2 2002 — edited Apr 3 2002Hi!
I want to transform an XML document -using Xalan and Xerces- into another XML document. My problem is that my original XML document contains entity references such as é or ú so when I execute my Transformer I always get the exception -for example-: "The entity "eacute" was referenced, but not declared". I don't want the transformer to resolve this references, I want to retrieve the original text, I mean, if my document contains an element such as <text>Perú</text> I want to transform it in another element, for instance: <myTextElement>Perú</myTextElement>.
How can I do this? How can I make the transformer to ignore the entity references?
Thanks in advance!