|
RE: Why "EntityReference not supported for WBXML" ?: msg#00004java.enhydra.kxml
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: kxml-admin@xxxxxxxxxxx [mailto:kxml-admin@xxxxxxxxxxx] On Behalf Of > Stefan Haustein > Sent: 18 March 2004 12:40 > To: kxml@xxxxxxxxxxx > 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: > > > > <font face="Helvetica" size="12"> > > > > 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 > > > > _______________________________________________ > Kxml mailing list > Kxml@xxxxxxxxxxx > http://www.enhydra.org/mailman/listinfo.cgi/kxml
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Why "EntityReference not supported for WBXML" ?, Stefan Haustein |
|---|---|
| Next by Date: | sample_midp problem on WTK v1, enrico . maccias |
| Previous by Thread: | Re: Why "EntityReference not supported for WBXML" ?, Stefan Haustein |
| Next by Thread: | sample_midp problem on WTK v1, enrico . maccias |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |