Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ignoring entity references

843834Apr 2 2002 — edited Apr 3 2002
Hi!

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 &eacute; or &uacute; 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&uacute;</text> I want to transform it in another element, for instance: <myTextElement>Per&uacute;</myTextElement>.
How can I do this? How can I make the transformer to ignore the entity references?

Thanks in advance!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2002
Added on Apr 2 2002
2 comments
350 views