This is a schema to encapsulate binary data of arbitrary format in XML using Base64 encoding. The specification consists of a description of the XML schema and an example of an instance of the schema.
http://preservation.naa.gov.au/binary-object/1.0
Prefix Namespace
xsd
http://www.w3.org/2001/XMLSchema
binary-object
http://preservation.naa.gov.au/binary-object/1.0
The following sections describe the binary XML schema.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:binary-object="http://preservation.naa.gov.au/binary-object/1.0"
targetNamespace="http://preservation.naa.gov.au/binary-object/1.0"
version="1.0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
binary-object. A schema to encapsulate binary data of arbitrary
format in XML using Base64.
Developed by the National Archives of Australia. Copyright 2010
Commonwealth of Australia.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="binary-object">
<xsd:complexType>
<xsd:attribute name="description" type="xsd:string" use="optional" />
</xsd:complexType>
</xsd:element>
</xsd:schema>
The following is an extract of an instance of the binary schema.
<binary-object:binary-object xmlns:binary-object="http://preservation.naa.gov.au/binary-object/1.0"
binary-object:description="The following data is a MIME-compliant (RFC 2045) PEM base64 (RFC 1421) representation of the original file contents.">
/1dQQ5gYAAABCgABAAAAAPv/BQAyAFQBAAD//wgAAABCAAAABwAqAAAASgAAAAwAWgAAAKAAAAAD
AAoAAAD6AAAAQ291cmllcgBDb3VyaWVyAENvdXJpZXIgQm9sZABDRyBUaW1lcyBCb2xkIEl0YWxp
YwBgNxL7AVgCQP7+/v7+/v7//v////7///7//////////////////////////0hQIExhc2VySmV0
IDUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIUExBUzUuUFJTACA19AF4AP4VNhBYBwAAAAQRQMkA
uWA3EvsB8AAUASwBXAHwniccFVgCQNAGBgABAAYABtAIM3wAeAAAAAEAAAAAAAAAQm9sZAAAAAAA
AAAAAAAAAAAAAAAAAAAA9AF4AP4VNhBYBwAAAAQRQMkAAAA3EvsBAAAAAAAAAAAAAAAAAFgCQPv/
[...]
</binary-object:binary-object>