Re Binary data in XML

Terry Allen tallen at
Sat Oct 18 00:05:28 BST 1997

Mike Sample writes:
| Is there a standard way to include binary data directly within an
| XML/RDF document? Or must one use indirection or ad-hoc encoding such
| as:
|   <foo href=""/>
| or
|   <foo enc="hex">A103EF92B7</foo>

Not a standard, but you might consider

which expires tomorrow.  I don't know whether the author expects to
update it.  It defines a data URL like


in which the payload is encoded in base64 and the mediatype is a MIME
type.  It's SGML/XML-safe.



  Terry Allen    Electronic Publishing Consultant    tallen[at]
    Davenport and DocBook:
              at CNgroup:  terry.allen[at]

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list