[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster-devel] XML generation
Quartier, Nicolas wrote:
Marcel,
The issues you're mentioning are indeed very important.
But the thing is when you have an xmlblaster client publishing a message
with eg. the oid = Jack&Moud, you'll get a parse error on the server side,
because the XML that is sent over between client and server is invalid.
As long as the application programmer does not use any 'special'
characters,
everything should work fine. But I think it's not a good idea to put
a restriction on the use of 'special' characters.
No this is no good idea.
For now we have to avoid the characters
&
<
'
in the XML key attribute fields
oid
contentMime
contentMimeExtended
queryType
domain
all others (of ISO 8859-1) should be OK.
The client properties in the QoS section are automatically
base64 encoded (C++ and Java client library)
if they contain special characters (i have
fixed this for '&' in the current cvs).
The payload in the message 'content' may contain everything
as it is handled as a binary BLOB.
regards,
Marcel
Regards,
Nicolas.
-----Original Message-----
From: owner-xmlblaster-devel at server.xmlBlaster.org
[mailto:owner-xmlblaster-devel at server.xmlBlaster.org]On Behalf Of Marcel
Ruff
Sent: vrijdag 6 augustus 2004 9:49
To: xmlblaster-devel at server.xmlBlaster.org
Subject: Re: [xmlblaster-devel] XML generation
Quartier, Nicolas wrote:
> Hi,
>
> The xml used by XMLBlaster is parsed with a SAX parser it seems.
>
> But for the generation of XML strings, no parser is used, resulting in
> incorrect XML. (StringBuffers are used to generate the XML strings)
>
> The result is that special characters like &, at , ... can not be used.
> eg "Jack&Moud" needs to be translated into "Jack&Moud".
>
> Further information can be found on:
> http://www.javazoom.net/services/newsletter/xmlgeneration.html
This is a nice overview, our constraints to change
to another xml generation technique are:
- support for JDK 1.2 up to 1.5
- keep performance
- portability
regards
Marcel
>
>
> Has anyone else already tried to used some of those special characters ?
>
> Kind regards,
> Nicolas.
>
--
http://www.xmlBlaster.org
--
http://www.xmlBlaster.org