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!

escape characters in XML

843834May 17 2004 — edited May 18 2004
Parsing XML goes wrong when characters like ? exists in textnodes.

XML example:
<?xml version="1.0" ?>
<example>?</example>
I think they need to be translated to escape characters. Is there any convenient way (method?) in the org.w3.dom / org.xml.* packages of doing this, or do have to write my own methods to achieve this?

Question 2, does anyone knows a list of these characters which need to be translated (or is this te same as on http://www.w3.org/TR/REC-html40/sgml/entities.html )


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2004
Added on May 17 2004
7 comments
298 views