Binary Data in XML : Turning back the clock

Samuel R. Blackburn (sblackbu@erols.com)
Wed, 30 Sep 1998 07:33:39 -0400


A couple of weeks ago on this list, there was a thread that was
lamenting the slow adoption of XML in the web community.

It seems to me that one of the first problems programmers
encounter is XML's inability to handle "binary" data. Once they
hit that wall, they drop XML and move on to something else
(usually a custom format).

If we could turn back the clock to before 19980210 and get
rid of design goal #3, handling binary data could have been
so easily handled by adding one element attribute. If the
XML spec had included one predefined attribute called
"xml:length" binary data would have been a no-brainer to
handle. Here's an example:

<BINARY_DATA xml:length="4"><<<<</BINARY_DATA>

It would take minutes to add this capability to existing parsers.

Will XML 2.0 handle binary data? Is XML 2.0 on the drawing
boards yet?

Sam
http://ourworld.compuserve.com/homepages/sam_blackburn/