TransXML Home
Project Information
Links
Contacts
Sources and Resources
GML Experiment
Construction/Materials Schema
Bridge Structures Schema
Survey/Design Schema
Safety Schema

Search:
Go 

Login
Register
NCHRP 20-64 XML Schemas for the Exchange of Transportation Data     
TransXML Home > Safety Schema > Safety Schema Discussion
Discussion Forum

Author Thread: Media data type
Steve Brown
Media data type
Posted: Monday, March 07, 2005 4:33 PM (EST)
NDOR has also included a media type.  Photos of the crash can be included as part of the trasmitted data
<xsd:complexType name="ImageDataType">
  <xsd:annotation>
    <xsd:documentation>contains either binary image data or a link to the binary image data 
</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleContent>
    <xsd:extension base="xsd:string">
      <xsd:attribute name="size" type="xsd:string" use="optional">
        <xsd:annotation>
          <xsd:documentation>CDATA</xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute name="mimeType" type="xsd:string" use="required">
        <xsd:annotation>
          <xsd:documentation>CDATA </xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute name="contentEncoding" type="xsd:string" use="optional">
        <xsd:annotation>
          <xsd:documentation>default=Base64</xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute name="href" type="xsd:string" use="optional">
        <xsd:annotation>
          <xsd:documentation>CDATA </xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute name="key" type="xsd:string" use="optional"/>
    </xsd:extension>
  </xsd:simpleContent>
</xsd:complexType>