[Home] [By Thread] [By Date] [Recent Entries]

  • From: Brendan Macmillan <bren@m...>
  • To: derhoermi@g...
  • Date: Fri, 17 Aug 2001 20:56:19 +1000 (EST)

Hi Björn,

> >a convention for representing a character of value 0 in XML?
> 
> I suggest the hexBinary or base64Binary XML Schema Datatypes, they are
> as "standard" as possible. Since the text node contains obviously binary
> data, it's just the way to go.

Thanks for your reply!  For pure binary data, I definitely agree.. but I'm
thinking of strings like:

"Now is the time for all good men to come to the aid of the party@@@@@@@@@"

Where the "@" are null characters - where the String is *mostly* text, it
would be nice to render the readable text as human readable...  it is also
nicer for writing, because you don't need two passes (to check for control
characters first)... but hey, efficiency? this is XML here!  ;-)

hexBinary and base64Binary don't do this, of course, being designed for pure
binary... but it seems that their "one binary spoils the bunch" approach is
the only one available...  but I'm still hoping...

Cheers,
Brendan
-- 
e:  bren@m...                    v:  +61 (3)  9905 1502
Email is checked daily                              Phone is rarely attended

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member