You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Andrew Welch <AW...@piper-group.com> on 2003/10/02 12:28:00 UTC
character reference in java
Hi,
First, apologies for this shameless non-xalan-specific question, but it
is sort-of xml related...
The result of my transform contains character references (or numeric
entities as some seem to call them) such as:
Hello&_#160;world (underscore non-text mailers)
I sax parse this result and later show it in the title bar of dialog (in
java) however the &_#160; remains unresolved, the title bar contains the
literals characters &,#,1,6,0 and ;
Does java have any methods to resolve character references to the
equivalent character literal, so the that space correctly appears in the
title bar?
I don't want to string parse it replacing &# with \u, but if that's the
only way...
cheers
andrew