RE: [xml-dev] Naive question about binary encodings

From
Michael Kay <>
To
,
Date
2003-03-26T09:25:10
ID
<000201c2f379$990e0360$6401a8c0@pcukmka>
Thread
RE: [xml-dev] Naive question about binary encodings
> I'm sure this is really naïve of me, but I have to admit that 
> I don't understand why binary data cannot be sent within an 
> xml document by providing appropriately namespace-controlled 
> attributes that identify an element type as binary and 
> specify its length.  For example:
> 
> <foo xml:mytype="binary" xml:binarylength="1776"> 
> or some such thing, followed by 1776 octets of whatever one 
> likes.  It's kind of like MIME in some respects- as long as 
> its type and length are identified, you can do whatever you 
> like with it.
> 
> It's so obvious that I am sure it has been rejected already, 
> but, being a mere implementor, I don't quite understand why.

This would mean that you can't transcode a document without parsing it.

Michael Kay