Re: Why "EntityReference not supported for WBXML" ?

Stefan Haustein <[email protected]> Thu, 18 Mar 2004 11:40:15 +0100
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <[email protected]>
Hi Bogdan,

Entity refernces are not supported by WBXML. Special characters such as '<' and 
'&' are escaped automatically in the "regular" kXML serializer and do not need 
to be escaped in WBXML.

Just send your text directly and unescaped to text().

Best regards
Stefan Haustein


Bogdan Onoiu wrote:
> Hi Stefan,
> 
> Do you have any reasons why you don't support EntityReferences in the
> WBXMLSerializer?
> 
> More specific:
> 
>     public void entityRef(String er) {
>         throw new RuntimeException("EntityReference not supported for
> WBXML" + er);
>     }
> 
> The XML I try to encode has escaped sequences like eg:
> 
> &lt;font face="Helvetica" size="12"&gt;
> 
> In principle we can put back chars like "<" in the outgoing WBXML stream
> coz they are sort of "legal" char in WBXML, rite?
> 
> What is your view on this? Where should this logic reside?
> entityReference method?
> 
> In a 2001 email I saw:
> http://kxml.enhydra.org/project/mailingLists/kxml/msg00078.html
> 
> But this method seems to have disappeared.
> 
> Please advice,
> 
> Bogdan
> 
> 
> 
> 
> 
> _______________________________________________
> Kxml mailing list
> [email protected]
> http://www.enhydra.org/mailman/listinfo.cgi/kxml