XML Schema : BinaryFile.xsd
Target namespace: http://www.openmicroscopy.org/XMLschemas/BinaryFile/RC1/BinaryFile.xsd
Schema Comments:
Imports namespace:http://www.w3.org/XML/1998/namespace schemaLocation: http://www.w3.org/2001/xml.xsd
Processing Instructions
Schema has: 3element definitions,  0 global attribute definitions,  6 element attribute definitions,  1 datatype definitions.
Possible root elements: BinaryFile

Element list

Element BinaryFile
 
diagram
description Describes a binary file.
uses elements BinData, External
uses attributes BinaryFile/FileName, BinaryFile/Size
 
substitution hierarchy BinaryFile
content choice
 
Attribute Datatype Use Values Default Comments
FileName {} required
Size integer required Size (in bytes) of the uncompressed file.
 
source
-<element name="BinaryFile">
-<annotation>
 <documentation>Describes a binary file.</documentation>
 </annotation>
-<complexType>
-<choice>
 <element ref="Bin:External" />
 <element ref="Bin:BinData" />
 </choice>
-<attribute name="FileName" use="required">
-<simpleType>
-<restriction base="string">
 <maxLength value="64" />
 </restriction>
 </simpleType>
 </attribute>
-<attribute name="Size" use="required" type="integer">
-<annotation>
 <documentation>Size (in bytes) of the uncompressed file.</documentation>
 </annotation>
 </attribute>
 </complexType>
 </element>

Element BinData
 
diagram
description The contents of this element are base64-encoded. These are not CDATA sections, just a base64 stream.
uses attributes BinData/Compression
 
used by elementsBinaryFile
substitution hierarchy BinData
content sequence (default)
 
Attribute Datatype Use Values Default Comments
Compression {} optional (default) possible values: zlib | bzip2 | none none Specifies the compression scheme used to encode the data.
 
source
-<element name="BinData">
-<annotation>
 <documentation>The contents of this element are base64-encoded. These are not CDATA sections, just a base64 stream.</documentation>
 </annotation>
-<complexType>
-<simpleContent>
-<extension base="base64Binary">
-<attribute name="Compression" default="none">
-<annotation>
 <documentation>Specifies the compression scheme used to encode the data. </documentation>
 </annotation>
-<simpleType>
-<restriction base="string">
 <enumeration value="zlib" />
 <enumeration value="bzip2" />
 <enumeration value="none" />
 </restriction>
 </simpleType>
 </attribute>
 </extension>
 </simpleContent>
 </complexType>
 </element>

Element External
 
diagram
description Describes a file location. Can optionally specify a portion of a file using Offset and a ReadLength. If Offset and ReadLength are specified in conjuction with Compression, then they point into the uncompressed file.
uses attributes External/Compression, External/href, External/SHA1
 
used by elementsBinaryFile
substitution hierarchy External
content sequence (default)
 
Attribute Datatype Use Values Default Comments
href anyURI required file location
SHA1 Bin:Hex40 required The digest of the file specified in href.
Compression {} optional (default) possible values: zlib | bzip2 | none none Specifies the compression scheme used to encode the data.
 
source
-<element name="External">
-<annotation>
 <documentation>Describes a file location. Can optionally specify a portion of a file using Offset and a ReadLength. If Offset and ReadLength are specified in conjuction with Compression, then they point into the uncompressed file. </documentation>
 </annotation>
-<complexType>
-<attribute name="href" use="required" type="anyURI">
-<annotation>
 <documentation>file location</documentation>
 </annotation>
 </attribute>
-<attribute name="SHA1" use="required" type="Bin:Hex40">
-<annotation>
 <documentation>The digest of the file specified in href.</documentation>
 </annotation>
 </attribute>
-<attribute name="Compression" default="none">
-<annotation>
 <documentation>Specifies the compression scheme used to encode the data.</documentation>
 </annotation>
-<simpleType>
-<restriction base="string">
 <enumeration value="zlib" />
 <enumeration value="bzip2" />
 <enumeration value="none" />
 </restriction>
 </simpleType>
 </attribute>
 </complexType>
 </element>

DataType definitions

Datatype Hex40   defined by restriction
 
dt base hexBinary
length 20

http://www.openmicroscopy.org/XMLschemas/BinaryFile/RC1/BinaryFile.xsd Original Schema Source

<!--
Generated by Turbo XML 2.3.1.100. Conforms to w3c http://www.w3.org/2001/XMLSchema
 -->
-<schema targetNamespace="http://www.openmicroscopy.org/XMLschemas/BinaryFile/RC1/BinaryFile.xsd" version="RC1" elementFormDefault="qualified">
 <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
<!--
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (C) 2003 Open Microscopy Environment
#       Massachusetts Institute of Technology,
#       National Institutes of Health,
#       University of Dundee
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 -->
<!--
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Written by:  Josiah Johnston <siah@nih.gov>
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 -->
-<element name="External">
-<annotation>
 <documentation>Describes a file location. Can optionally specify a portion of a file using Offset and a ReadLength. If Offset and ReadLength are specified in conjuction with Compression, then they point into the uncompressed file. </documentation>
 </annotation>
-<complexType>
-<attribute name="href" use="required" type="anyURI">
-<annotation>
 <documentation>file location</documentation>
 </annotation>
 </attribute>
-<attribute name="SHA1" use="required" type="Bin:Hex40">
-<annotation>
 <documentation>The digest of the file specified in href.</documentation>
 </annotation>
 </attribute>
-<attribute name="Compression" default="none">
-<annotation>
 <documentation>Specifies the compression scheme used to encode the data.</documentation>
 </annotation>
-<simpleType>
-<restriction base="string">
 <enumeration value="zlib" />
 <enumeration value="bzip2" />
 <enumeration value="none" />
 </restriction>
 </simpleType>
 </attribute>
 </complexType>
 </element>
-<element name="BinData">
-<annotation>
 <documentation>The contents of this element are base64-encoded. These are not CDATA sections, just a base64 stream.</documentation>
 </annotation>
-<complexType>
-<simpleContent>
-<extension base="base64Binary">
-<attribute name="Compression" default="none">
-<annotation>
 <documentation>Specifies the compression scheme used to encode the data. </documentation>
 </annotation>
-<simpleType>
-<restriction base="string">
 <enumeration value="zlib" />
 <enumeration value="bzip2" />
 <enumeration value="none" />
 </restriction>
 </simpleType>
 </attribute>
 </extension>
 </simpleContent>
 </complexType>
 </element>
-<element name="BinaryFile">
-<annotation>
 <documentation>Describes a binary file.</documentation>
 </annotation>
-<complexType>
-<choice>
 <element ref="Bin:External" />
 <element ref="Bin:BinData" />
 </choice>
-<attribute name="FileName" use="required">
-<simpleType>
-<restriction base="string">
 <maxLength value="64" />
 </restriction>
 </simpleType>
 </attribute>
-<attribute name="Size" use="required" type="integer">
-<annotation>
 <documentation>Size (in bytes) of the uncompressed file.</documentation>
 </annotation>
 </attribute>
 </complexType>
 </element>
-<simpleType name="Hex40">
-<restriction base="hexBinary">
 <length value="20" />
 </restriction>
 </simpleType>
 </schema>