Re: [Wbxmllib-devel] CDATA encoded into opaque
Philippe Laporte <[email protected]> Wed, 24 Aug 2005 13:07:03 +0200
| Newsgroups | gmane.comp.gnome.apps.multisync.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Thanks for your answer. Yes, libwbxml will report CDATA as text.
Yes, an XML file can be converted in many different ways into an WBXML=20
document, when it comes to inlining strings or referencing the string=20
the string table, but these are all standardized, and hence deterministic=
.
The decoder can handle the different encodings because they are valid=20
with respect to the WBXML specs. What is not deterministic is if the=20
decoder sees OPAQUE, what's in it.
Or?
I don't quite get the third paragraph. Do you mean the WBXML OPAQUE conte=
nt?
Really there should be standardized way of determining what is the=20
OPAQUE...no? One could say, for example, if the WBXML is SyncML, then=20
the OPAQUE is CDATA, no?
Best Regards,
Philippe Laporte
Software=20
Gatespace Telematics
F=F6rsta L=E5nggatan 18
41328 G=F6teborg
Sweden
Phone: +46 702 04 35 11
Fax: +46 31 24 16 50
Email: philippe.laporte-FIFhI/qTGH1saXRJfIyQzzlRY1/[email protected]
Rasmus Lock Larsen wrote:
> I see your point. Actually, the wbxmllib will not decode an WBXML=20
> document encoded from an XML containing CDATA into the same XML (since=20
> the CDATA tags are not added when decoding OPAQUE WBXML).
> =20
> My key-point is, that you CAN'T ensure interoperability when talking=20
> about WBXML (since there is an almost unlimited number of WBXML=20
> documents representing the same XML document), so as long as your=20
> decoder can handle the different combinations of encodings, the=20
> interoperability should be ensured (in XML that is).
> =20
> Never write any logic (except in the decoder) that uses the WBXML=20
> content, since the WBXML content is so ambiguous, you will most likely=20
> increase the code-complexity and still not have a 100%=20
> interoperability coverage.
> =20
> Br. Rasmus
> =20
> On 8/22/05, *Philippe Laporte*=20
> <philippe.laporte-FIFhI/qTGH1saXRJfIyQzzlRY1/[email protected]=20
> <mailto:philippe.laporte-FIFhI/qTGH1saXRJfIyQzzlRY1/[email protected]>> wrote:
>
> Hi,
> Thanks for your answer.
>
> My question is about how to ensure interoperability between differe=
nt
> WBXML servers and clients when it comes to encoding of CDATA.
>
> Thanks a lot,
>
> Philippe Laporte
> Software
>
> Gatespace Telematics
> F=F6rsta L=E5nggatan 18
> 41328 G=F6teborg
> Sweden
> Phone: +46 702 04 35 11
> Fax: +46 31 24 16 50
> Email: philippe.laporte-FIFhI/qTGH1saXRJfIyQzzlRY1/[email protected]
> <mailto:philippe.laporte-FIFhI/qTGH1saXRJfIyQzzlRY1/[email protected]>
>
>
>
> Philippe Laporte wrote:
>
> > Hi,
> > Looking at the code in libwbxml it appears that CDATAs are
> encoded
> > into opaque for WBXML.
> >
> > I couldn't find the section in the WBXML specification document t=
hat
> > specifies this.
> >
> > Is it specified at all, or is it in any way standardized to do
> this?
> >
> > Similar question for not encoding in <![CDATA[ and ]]>
> > (although of course it makes a lot of sense).
> >
> > So the complementary question is what is the heuristics for knowi=
ng
> > what's in an OPAQUE section?
> >
> > Thanks,
> > Philippe
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXP=
O
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> > Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing
> > & QA
> > Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Wbxmllib-devel mailing list
> > [email protected]
> <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/wbxmllib-devel
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing & QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> Wbxmllib-devel mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/wbxmllib-devel
>
>
>
>
> --=20
> Med venlig hilsen / Best regards
> Rasmus Lock Larsen
> [email protected] <mailto:[email protected]>=20
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf