RE: Why "EntityReference not supported for WBXML" ?

"Bogdan Onoiu" <[email protected]> Fri, 19 Mar 2004 00:37:33 +0200
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <000001c40d39$9b12bd10$0200a8c0@clyde>
Hmm don't know if I get it correctly or if you get my question
correctly. 

The XML document Im tring to encode to WBXML contains escaped sequences
and those seem to be left escaped by the kXML reader so the WBXML
serializer is throwing runtime excpetion. The characters must be encoded
in the XML as they would be illegal there but couldn't the
WBXMLSerializer reassamble the unescaped char back? 

Am I really of track? If yes I should read your code again, is been a
while since I read it last time.

Thanks,
Bogdan

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
Of
> Stefan Haustein
> Sent: 18 March 2004 12:40
> To: [email protected]
> Subject: Re: Kxml: 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
> > [email protected]
> > http://www.enhydra.org/mailman/listinfo.cgi/kxml
> 
> 
> 
> _______________________________________________
> Kxml mailing list
> [email protected]
> http://www.enhydra.org/mailman/listinfo.cgi/kxml