logo       

Re: Why "EntityReference not supported for WBXML" ?: msg#00003

java.enhydra.kxml

Subject: Re: Why "EntityReference not supported for WBXML" ?

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
Kxml@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/kxml


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise