<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!--
  Description: This xml file defines the valid mime types used by Tika.
  The mime type data within this file is based on information from various
  sources like Apache Nutch, Apache HTTP Server, the file(1) command, etc.

  Notes:
   * Tika supports a wider range of match types than Freedesktop does
   * Glob patterns must be unique, if there's a clash assign to the most
     popular format
   * The main mime type should be the canonical one, use aliases for any
     other widely used forms
   * Where there's a hierarchy in the types, list it via a parent
   * Highly specific magic matches get a high priority
   * General magic matches which could trigger a false-positive need
     a low one
   * The priority for containers normally need to be higher than for
     the things they contain, so they don't accidently get detected
     as what's in them
   * For logic too complex to be expressed in a magic match, do the best
     you can here, then provide a Custom Detector for the rest
-->
<mime-info>

  <mime-type type="application/activemessage"/>
  <mime-type type="application/andrew-inset">
    <glob pattern="*.ez"/>
  </mime-type>

  <mime-type type="application/applefile">
    <magic priority="50">
      <match value="0x00051600" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/applixware">
    <glob pattern="*.aw"/>
  </mime-type>

  <mime-type type="text/iso19139+xml">
	  <root-XML localName="MD_metadata"/>
	  <root-XML localName="MD_metadata" namespaceURI="http://www.isotc211.org/2005/gmd"/>
	  <glob pattern="*.iso19139"/>
	  <sub-class-of type="application/xml"/>
   </mime-type>


  <mime-type type="application/atom+xml">
    <root-XML localName="feed" namespaceURI="http://purl.org/atom/ns#"/>
    <root-XML localName="feed" namespaceURI="http://www.w3.org/2005/Atom"/>

    <glob pattern="*.atom"/>
  </mime-type>

  <mime-type type="application/atomcat+xml">
    <glob pattern="*.atomcat"/>
  </mime-type>
  <mime-type type="application/atomicmail"/>
  <mime-type type="application/atomsvc+xml">
    <glob pattern="*.atomsvc"/>
  </mime-type>
  <mime-type type="application/auth-policy+xml"/>

  <mime-type type="application/x-bat">
    <_comment>Windows Batch / Command File</_comment>
    <alias type="application/bat"/>
    <sub-class-of type="text/plain"/>
    <magic priority="50">
      <match value="@echo off" type="stringignorecase" offset="0" />
      <match value="rem " type="stringignorecase" offset="0" />
    </magic>
    <glob pattern="*.bat"/>
    <glob pattern="*.cmd"/>
  </mime-type>

  <mime-type type="application/batch-smtp"/>
  <mime-type type="application/beep+xml"/>

  <mime-type type="application/bizagi-modeler">
    <_comment>BizAgi Process Modeler</_comment>
    <sub-class-of type="application/zip"/>
    <glob pattern="*.bpm"/>
  </mime-type>

  <mime-type type="application/cals-1840"/>

  <mime-type type="application/cbor">
    <acronym>CBOR</acronym>
    <_comment>Concise Binary Object Representation container</_comment>
    <tika:link>http://tools.ietf.org/html/rfc7049</tika:link>
    <magic priority="60">
      <match value="0xd9d9f7" type="string" offset="0" />
    </magic>
    <glob pattern="*.cbor"/>
  </mime-type>

  <mime-type type="application/ccxml+xml">
    <glob pattern="*.ccxml"/>
  </mime-type>
  <mime-type type="application/cea-2018+xml"/>
  <mime-type type="application/cellml+xml"/>
  <mime-type type="application/cnrp+xml"/>
  <mime-type type="application/commonground"/>
  <mime-type type="application/conference-info+xml"/>
  
  <mime-type type="application/coreldraw">
     <alias type="application/x-coreldraw"/>
     <alias type="application/x-cdr"/>
     <alias type="application/cdr"/>
     <alias type="image/x-cdr"/>
     <alias type="image/cdr"/>
     <_comment>CorelDraw</_comment>
     <_comment>cdr: CorelDraw</_comment>
     <_comment>des: CorelDraw X4 and newer</_comment>
     <magic priority="60">
        <match value="RIFF" type="string" offset="0">
           <match value="CDR" type="string" offset="8" />
           <match value="cdr" type="string" offset="8" />
           <match value="DES" type="string" offset="8" />
           <match value="des" type="string" offset="8" />
        </match>
     </magic>
     <glob pattern="*.cdr"/>
  </mime-type>
  
  <mime-type type="application/cpl+xml"/>
  <mime-type type="application/csta+xml"/>
  <mime-type type="application/cstadata+xml"/>
  <mime-type type="application/cu-seeme">
    <glob pattern="*.cu"/>
  </mime-type>
  <mime-type type="application/cybercash"/>
  <mime-type type="application/davmount+xml">
    <glob pattern="*.davmount"/>
  </mime-type>
  <mime-type type="application/x-dbf">
    <magic priority="100">
      <match value="(?s)^[\\x02\\x03\\x30\\x31\\x32\\x43\\x63\\x83\\x8B\\xCB\\xF5\\xE5\\xFB].[\\x01-\\x0C][\\x01-\\x1F].{4}(?:.[^\\x00]|[\\x41-\\xFF].)(?:[^\\x00\\x01].|.[^\\x00]).{31}(?&lt;=[\\x00][^\\x00]{0,10})[A-Z@+]" type="regex" offset="0"/>
    </magic>
    <glob pattern="*.dbf"/>
    <glob pattern="*.dbase"/>
    <glob pattern="*.dbase3"/>
  </mime-type>

  <mime-type type="application/dca-rft"/>
  <mime-type type="application/dec-dx"/>
  <mime-type type="application/dialog-info+xml"/>

  <mime-type type="application/dicom">
    <_comment>DICOM medical imaging data</_comment>
    <magic priority="50">
      <match value="DICM" type="string" offset="128"/>
    </magic>
  </mime-type>

  <mime-type type="application/dita+xml">
    <sub-class-of type="application/xml"/>
    <_comment>Darwin Information Typing Architecture</_comment>
  </mime-type>

  <mime-type type="application/dita+xml;format=map">
    <sub-class-of type="application/dita+xml"/>
    <_comment>DITA Map</_comment>
    <root-XML localName="map"/>
    <root-XML localName="map" namespaceURI="http://docs.oasis-open.org/namespace"/>
    <glob pattern="*.ditamap"/>
  </mime-type>
  <mime-type type="application/dita+xml;format=topic">
    <sub-class-of type="application/dita+xml"/>
    <_comment>DITA Topic</_comment>
    <root-XML localName="topic"/>
    <root-XML localName="topic" namespaceURI="http://docs.oasis-open.org/namespace"/>
    <!-- Topic is the default, Task and Concept are specialisations -->
    <glob pattern="*.dita"/>
  </mime-type>
  <mime-type type="application/dita+xml;format=task">
    <sub-class-of type="application/dita+xml"/>
    <_comment>DITA Task Topic</_comment>
    <root-XML localName="task"/>
    <root-XML localName="task" namespaceURI="http://docs.oasis-open.org/namespace"/>
  </mime-type>
  <mime-type type="application/dita+xml;format=concept">
    <sub-class-of type="application/dita+xml;format=topic"/>
    <_comment>DITA Concept Topic</_comment>
    <root-XML localName="concept"/>
    <root-XML localName="concept" namespaceURI="http://docs.oasis-open.org/namespace"/>
  </mime-type>
  <mime-type type="application/dita+xml;format=val">
    <sub-class-of type="application/dita+xml"/>
    <_comment>DITA Conditional Processing Profile</_comment>
    <root-XML localName="val"/>
    <root-XML localName="val" namespaceURI="http://docs.oasis-open.org/namespace"/>
    <glob pattern="*.ditaval"/>
  </mime-type>

  <mime-type type="application/dns"/>
  <mime-type type="application/dvcs"/>
  <mime-type type="application/ecmascript">
    <glob pattern="*.ecma"/>
  </mime-type>
  <mime-type type="application/edi-consent"/>
  <mime-type type="application/edi-x12"/>
  <mime-type type="application/edifact"/>
  <mime-type type="application/emma+xml">
    <glob pattern="*.emma"/>
  </mime-type>
  <mime-type type="application/epp+xml"/>

  <mime-type type="application/epub+zip">
    <acronym>EPUB</acronym>
    <_comment>Electronic Publication</_comment>
    <magic priority="50">
      <match value="PK\003\004" type="string" offset="0">
        <match value="mimetypeapplication/epub+zip" type="string" offset="30"/>
      </match>
    </magic>
    <glob pattern="*.epub"/>
  </mime-type>

  <mime-type type="application/eshop"/>
  <mime-type type="application/example"/>
  <mime-type type="application/fastinfoset"/>
  <mime-type type="application/fastsoap"/>

  <mime-type type="application/fits">
    <acronym>FITS</acronym>
    <_comment>Flexible Image Transport System</_comment>
    <tika:link>http://www.digitalpreservation.gov/formats/fdd/fdd000317.shtml</tika:link>
    <magic priority="50">
      <match value="SIMPLE  =                    T" type="string" offset="0"/>
      <match value="SIMPLE  =                T" type="string" offset="0"/>
    </magic>
    <glob pattern="*.fits"/>
    <glob pattern="*.fit"/>
    <glob pattern="*.fts"/>
  </mime-type>

  <mime-type type="application/font-tdpfr">
    <glob pattern="*.pfr"/>
  </mime-type>
  <mime-type type="application/h224"/>
  <mime-type type="application/http"/>
  <mime-type type="application/hyperstudio">
    <glob pattern="*.stk"/>
  </mime-type>
  <mime-type type="application/ibe-key-request+xml"/>
  <mime-type type="application/ibe-pkg-reply+xml"/>
  <mime-type type="application/ibe-pp-data"/>
  <mime-type type="application/iges"/>

  <mime-type type="application/illustrator">
    <acronym>AI</acronym>
    <_comment>Adobe Illustrator Artwork</_comment>
    <tika:link>http://en.wikipedia.org/wiki/Adobe_Illustrator_Artwork</tika:link>
    <glob pattern="*.ai"/>]
    <sub-class-of type="application/postscript"/>
  </mime-type>

  <mime-type type="application/im-iscomposing+xml"/>
  <mime-type type="application/index"/>
  <mime-type type="application/index.cmd"/>
  <mime-type type="application/index.obj"/>
  <mime-type type="application/index.response"/>
  <mime-type type="application/index.vnd"/>

  <mime-type type="application/inf">
    <_comment>Windows setup INFormation</_comment>
    <tika:link>http://msdn.microsoft.com/en-us/library/windows/hardware/ff549520(v=vs.85).aspx</tika:link>
    <alias type="application/x-setupscript"/>
    <alias type="application/x-wine-extension-inf"/>
    <sub-class-of type="text/plain"/>
    <magic priority="30">
      <match value="[version]" type="string" offset="0" />
      <match value="[strings]" type="string" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/iotp"/>
  <mime-type type="application/ipp"/>
  <mime-type type="application/isup"/>

  <mime-type type="application/java-archive">
    <_comment>Java Archive</_comment>
    <tika:link>http://en.wikipedia.org/wiki/.jar</tika:link>
    <tika:uti>com.sun.java-archive</tika:uti>
    <sub-class-of type="application/zip"/>
    <glob pattern="*.jar"/>
  </mime-type>

  <mime-type type="application/vnd.android.package-archive">
    <sub-class-of type="application/java-archive"/>
    <glob pattern="*.apk"/>
  </mime-type>
  <mime-type type="application/x-tika-java-enterprise-archive">
    <sub-class-of type="application/java-archive"/>
    <glob pattern="*.ear"/>
  </mime-type>
  <mime-type type="application/x-tika-java-web-archive">
    <sub-class-of type="application/java-archive"/>
    <glob pattern="*.war"/>
  </mime-type>

  <mime-type type="application/x-tika-unix-dump"/>

  <mime-type type="application/java-serialized-object">
    <glob pattern="*.ser"/>
  </mime-type>

  <mime-type type="application/javascript">
    <alias type="application/x-javascript"/>
    <alias type="text/javascript"/>
    <sub-class-of type="text/plain"/>
    <_comment>JavaScript Source Code</_comment>
    <glob pattern="*.js"/>
  </mime-type>

  <mime-type type="application/json">
    <sub-class-of type="application/javascript"/>
    <glob pattern="*.json"/>
  </mime-type>

  <mime-type type="application/java-vm">
    <_comment>Java Class File</_comment>
    <alias type="application/x-java-vm"/>
    <alias type="application/x-java"/>
    <magic priority="40">
      <match value="0xcafebabe" type="string" offset="0" />
    </magic>
    <glob pattern="*.class"/>
  </mime-type>

  <mime-type type="application/x-java-jnilib">
    <_comment>Java Native Library for OSX</_comment>
    <magic priority="50">
      <match value="0xcafebabe" type="string" offset="0">
        <match value="0xfeedface" type="string" offset="4096"/>
        <match value="0xfeedfacf" type="string" offset="4096"/>
        <match value="0xcefaedfe" type="string" offset="4096"/>
        <match value="0xcffaedfe" type="string" offset="4096"/>
      </match>
    </magic>
    <glob pattern="*.jnilib"/>
  </mime-type>

  <mime-type type="application/kpml-request+xml"/>
  <mime-type type="application/kpml-response+xml"/>
  <mime-type type="application/lost+xml">
    <glob pattern="*.lostxml"/>
  </mime-type>

  <mime-type type="application/mac-binhex40">
    <alias type="application/mac-binhex"/>
    <alias type="application/binhex"/>
    <magic priority="50">
      <match value="must be converted with BinHex" type="string" offset="11"/>
    </magic>
    <glob pattern="*.hqx"/>
  </mime-type>

  <mime-type type="application/mac-compactpro">
    <glob pattern="*.cpt"/>
  </mime-type>

  <mime-type type="application/macwriteii"/>
  <mime-type type="application/marc">
    <glob pattern="*.mrc"/>
  </mime-type>
  <mime-type type="application/mathematica">
    <glob pattern="*.ma"/>
    <glob pattern="*.nb"/>
    <glob pattern="*.mb"/>
  </mime-type>
  <mime-type type="application/mathml+xml">
    <glob pattern="*.mathml"/>
  </mime-type>
  <mime-type type="application/mbms-associated-procedure-description+xml"/>
  <mime-type type="application/mbms-deregister+xml"/>
  <mime-type type="application/mbms-envelope+xml"/>
  <mime-type type="application/mbms-msk+xml"/>
  <mime-type type="application/mbms-msk-response+xml"/>
  <mime-type type="application/mbms-protection-description+xml"/>
  <mime-type type="application/mbms-reception-report+xml"/>
  <mime-type type="application/mbms-register+xml"/>
  <mime-type type="application/mbms-register-response+xml"/>
  <mime-type type="application/mbms-user-service-description+xml"/>

  <mime-type type="application/mbox">
    <!-- MBOX files start with "From [sender] [date]" -->
    <!-- To avoid false matches, check for other headers after that -->

    <magic priority="70">
      <match value="From " type="string" offset="0">
        <match value="\nFrom: " type="string" offset="32:256"/>
        <match value="\nDate: " type="string" offset="32:256"/>
        <match value="\nSubject: " type="string" offset="32:256"/>
        <match value="\nDelivered-To: " type="string" offset="32:256"/>
        <match value="\nReceived: by " type="string" offset="32:256"/>
        <match value="\nReceived: via " type="string" offset="32:256"/>
        <match value="\nReceived: from " type="string" offset="32:256"/>
        <match value="\nMime-Version: " type="string" offset="32:256"/>

        <match value="\nX-" type="stringignorecase" offset="32:256">
          <match value="\nFrom: " type="string" offset="32:8192"/>
          <match value="\nDate: " type="string" offset="32:8192"/>
          <match value="\nSubject: " type="string" offset="32:8192"/>
          <match value="\nDelivered-To: " type="string" offset="32:8192"/>
          <match value="\nReceived: by " type="string" offset="32:8192"/>
          <match value="\nReceived: via " type="string" offset="32:8192"/>
          <match value="\nReceived: from " type="string" offset="32:8192"/>
          <match value="\nMime-Version: " type="string" offset="32:8192"/>
        </match>
      </match>
    </magic>
    <glob pattern="*.mbox"/>
    <sub-class-of type="text/x-tika-text-based-message"/>
  </mime-type>
  <mime-type type="application/media_control+xml"/>
  <mime-type type="application/mediaservercontrol+xml">
    <glob pattern="*.mscml"/>
  </mime-type>
  <mime-type type="application/mikey"/>
  <mime-type type="application/moss-keys"/>
  <mime-type type="application/moss-signature"/>
  <mime-type type="application/mosskey-data"/>
  <mime-type type="application/mosskey-request"/>

  <mime-type type="application/quicktime">
    <!-- The is the base QuickTime container -->
    <!-- QuickTime video, and all MP4 formats, are based on it -->
    <acronym>QTFF</acronym>
    <_comment>QuickTime container format</_comment>
  </mime-type>
  <mime-type type="application/mp4">
    <!-- Arbitrary data stored in a MP4 container -->
    <_comment>MP4 container format</_comment>
    <glob pattern="*.mp4s"/>
    <sub-class-of type="application/quicktime" />
  </mime-type>

  <mime-type type="application/mpeg4-generic"/>
  <mime-type type="application/mpeg4-iod"/>
  <mime-type type="application/mpeg4-iod-xmt"/>

  <!-- http://www.iana.org/assignments/media-types/application/msword -->
  <mime-type type="application/msword">
    <!-- Use DefaultDetector / org.apache.tika.parser.microsoft.POIFSContainerDetector for more reliable detection of OLE2 documents -->
    <alias type="application/vnd.ms-word"/>
    <_comment>Microsoft Word Document</_comment>
    <tika:link>http://en.wikipedia.org/wiki/.doc</tika:link>
    <tika:uti>com.microsoft.word.doc</tika:uti>
    <magic priority="50">
      <match value="Microsoft\ Word\ 6.0\ Document" type="string" offset="2080"/>
      <match value="Documento\ Microsoft\ Word\ 6" type="string" offset="2080"/>
      <match value="MSWordDoc" type="string" offset="2112"/>
      <match value="0x31be0000" type="big32" offset="0"/>
      <match value="PO^Q`" type="string" offset="0"/>
      <match value="\376\067\0\043" type="string" offset="0"/>
      <match value="\333\245-\0\0\0" type="string" offset="0"/>
      <match value="\224\246\056" type="string" offset="0"/>
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="W\x00o\x00r\x00d\x00D\x00o\x00c\x00u\x00m\x00e\x00n\x00t" type="string" offset="1152:4096" />
      </match>
    </magic>
    <glob pattern="*.doc"/>
    <glob pattern="*.dot"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/msword2">
    <!-- Pre-OLE2, not a subtype of application/x-tika-msoffice -->
    <_comment>Microsoft Word 2 Document</_comment>
    <magic priority="50">
      <match value="0x9ba5" type="string" />
      <match value="0xdba5" type="string" />
    </magic>
  </mime-type>
  <mime-type type="application/msword5">
    <!-- Pre-OLE2, not a subtype of application/x-tika-msoffice -->
    <_comment>Microsoft Word 5 Document</_comment>
    <magic priority="50">
      <match value="0xfe37" type="string" />
    </magic>
  </mime-type>

  <mime-type type="application/mxf">
    <glob pattern="*.mxf"/>
  </mime-type>
  <mime-type type="application/nasdata"/>
  <mime-type type="application/news-checkgroups"/>
  <mime-type type="application/news-groupinfo"/>
  <mime-type type="application/news-transmission"/>
  <mime-type type="application/nss"/>
  <mime-type type="application/ocsp-request"/>
  <mime-type type="application/ocsp-response"/>

  <mime-type type="application/octet-stream">
    <magic priority="50">
      <match value="#\ This\ is\ a\ shell\ archive" type="string" offset="10"/>
      <match value="\037\036" type="string" offset="0"/>
      <match value="017437" type="host16" offset="0"/>
      <match value="0x1fff" type="host16" offset="0"/>
      <match value="\377\037" type="string" offset="0"/>
      <match value="0145405" type="host16" offset="0"/>
    </magic>
    <glob pattern="*.bin"/>
    <glob pattern="*.dms"/>
    <glob pattern="*.lha"/>
    <glob pattern="*.lrf"/>
    <glob pattern="*.lzh"/>
    <glob pattern="*.so"/>
    <glob pattern="*.dist"/>
    <glob pattern="*.distz"/>
    <glob pattern="*.pkg"/>
    <glob pattern="*.bpk"/>
    <glob pattern="*.dump"/>
    <glob pattern="*.elc"/>
    <glob pattern="*.deploy"/>
  </mime-type>

  <mime-type type="application/oda">
    <glob pattern="*.oda"/>
  </mime-type>
  <mime-type type="application/oebps-package+xml">
    <glob pattern="*.opf"/>
  </mime-type>

  <mime-type type="application/ogg">
    <alias type="application/x-ogg"/>
    <magic priority="50">
      <match value="OggS" type="string" offset="0"/>
    </magic>
    <glob pattern="*.ogx"/>
  </mime-type>
  <mime-type type="application/kate">
    <sub-class-of type="application/ogg"/>
  </mime-type>

  <mime-type type="application/onenote">
    <alias type="application/msonenote"/>
    <acronym>OneNote</acronym>
    <glob pattern="*.onetmp"/>
  </mime-type>
  <mime-type type="application/onenote;format=one">
    <glob pattern="*.one"/>
    <magic priority="50">
      <!-- GUID {7B5C52E4-D88C-4DA7-AEB1-5378D02996D3} -->
      <match value="0x7B5C52E4" type="little32" offset="0">
        <match value="0xD88C" type="little16" offset="4">
          <match value="0x4DA7" type="little16" offset="6">
            <match value="0xAEB15378D02996D3" offset="8" />
          </match>
        </match>
      </match>
    </magic>
    <sub-class-of type="application/onenote"/>
  </mime-type>
  <mime-type type="application/onenote;format=onetoc2">
    <_comment>OneNote Table of Contents</_comment>
    <glob pattern="*.onetoc"/>
    <glob pattern="*.onetoc2"/>
    <magic priority="50">
      <!-- GUID {43FF2FA1-EFD9-4C76-9EE2-10EA5722765F} -->
      <match value="0x43FF2FA1" type="little32" offset="0">
        <match value="0xEFD9" type="little16" offset="4">
          <match value="0x4C76" type="little16" offset="6">
            <match value="0x9EE210EA5722765F" offset="8" />
          </match>
        </match>
      </match>
    </magic>
    <sub-class-of type="application/onenote"/>
  </mime-type>
  <mime-type type="application/onenote; format=package">
    <_comment>OneNote Package</_comment>
    <glob pattern="*.onepkg"/>
    <!-- Actually a CAB file of the other OneNote file formats! -->
    <sub-class-of type="application/vnd.ms-cab-compressed" />
  </mime-type>

  <mime-type type="application/parityfec"/>
  <mime-type type="application/patch-ops-error+xml">
    <glob pattern="*.xer"/>
  </mime-type>

  <mime-type type="application/pdf">
    <alias type="application/x-pdf"/>
    <acronym>PDF</acronym>
    <_comment>Portable Document Format</_comment>
    <tika:link>http://en.wikipedia.org/wiki/PDF</tika:link>
    <tika:link>http://www.adobe.com/devnet/pdf/pdf_reference_archive.html</tika:link>
    <tika:uti>com.adobe.pdf</tika:uti>
    <magic priority="50">
      <!-- Normally just %PDF- -->
      <match value="%PDF-" type="string" offset="0"/>
      <!-- Sometimes has a UTF-8 Byte Order Mark first -->
      <match value="\xef\xbb\xbf%PDF-" type="string" offset="0"/>
    </magic>
    <magic priority="20">
      <!-- Low priority match for %PDF-#.# near the start of the file -->
      <!-- Can trigger false positives, so set the priority rather low here -->
      <match value="%PDF-1." type="string" offset="1:512"/>
      <match value="%PDF-2." type="string" offset="1:512"/>
    </magic>
    <glob pattern="*.pdf"/>
  </mime-type>

  <mime-type type="application/pgp-encrypted">
    <alias type="application/pgp"/>
    <glob pattern="*.pgp"/>
  </mime-type>

  <mime-type type="application/pgp-keys"/>

  <mime-type type="application/pgp-signature">
    <glob pattern="*.asc"/>
    <glob pattern="*.sig"/>
  </mime-type>

  <mime-type type="application/pics-rules">
    <glob pattern="*.prf"/>
  </mime-type>
  <mime-type type="application/pidf+xml"/>
  <mime-type type="application/pidf-diff+xml"/>
  <mime-type type="application/pkcs10">
    <glob pattern="*.p10"/>
  </mime-type>

  <mime-type type="application/pkcs7-mime">
    <glob pattern="*.p7m"/>
    <glob pattern="*.p7c"/>
  </mime-type>

  <mime-type type="application/pkcs7-signature">
    <glob pattern="*.p7s"/>
    <magic priority="50">
      <!-- PEM encoded -->
      <match value="-----BEGIN PKCS7" type="string" offset="0"/>
      <!-- DER encoded, sequence+length, object=pkcs7-signedData -->
      <match value="0x3080" offset="0">
         <match value="0x06092a864886f70d0107FFa0" type="string"
                 mask="0xFFFFFFFFFFFFFFFFFFFF00FF" offset="2"/>
      </match>
      <match value="0x3081" offset="0">
         <match value="0x06092a864886f70d0107FFa0" type="string"
                 mask="0xFFFFFFFFFFFFFFFFFFFF00FF" offset="3"/>
      </match>
      <match value="0x3082" offset="0">
         <match value="0x06092a864886f70d0107FFa0" type="string"
                 mask="0xFFFFFFFFFFFFFFFFFFFF00FF" offset="4"/>
      </match>
      <match value="0x3083" offset="0">
         <match value="0x06092a864886f70d0107FFa0" type="string"
                 mask="0xFFFFFFFFFFFFFFFFFFFF00FF" offset="5"/>
      </match>
      <match value="0x3084" offset="0">
         <match value="0x06092a864886f70d0107FFa0" type="string"
                 mask="0xFFFFFFFFFFFFFFFFFFFF00FF" offset="6"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="application/timestamped-data">
    <glob pattern="*.tsd"/>
    <magic priority="50">
      <match value="0x3080060B2A864886F7" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/pkix-cert">
    <glob pattern="*.cer"/>
  </mime-type>
  <mime-type type="application/pkix-crl">
    <glob pattern="*.crl"/>
  </mime-type>
  <mime-type type="application/pkix-pkipath">
    <glob pattern="*.pkipath"/>
  </mime-type>
  <mime-type type="application/pkixcmp">
    <glob pattern="*.pki"/>
  </mime-type>
  <mime-type type="application/pls+xml">
    <glob pattern="*.pls"/>
  </mime-type>
  <mime-type type="application/poc-settings+xml"/>

  <mime-type type="application/postscript">
    <_comment>PostScript</_comment>
    <magic priority="50">
      <match value="%!" type="string" offset="0" />
      <match value="\004%!" type="string" offset="0" />
      <!-- Windows format EPS -->
      <match value="0xc5d0d3c6" type="string" offset="0"/>
      <match value="%!PS-Adobe-3.0 EPSF-3.0" type="string" offset="0"/> <!-- %!PS-Adobe-3.0 EPSF-3.0 (0x252150532D41646F)-->
    </magic>
    <glob pattern="*.ps"/>
    <glob pattern="*.eps"/>
    <glob pattern="*.epsf"/>
    <glob pattern="*.epsi"/>
  </mime-type>

  <mime-type type="application/prs.alvestrand.titrax-sheet"/>
  <mime-type type="application/prs.cww">
    <glob pattern="*.cww"/>
  </mime-type>
  <mime-type type="application/prs.nprend"/>
  <mime-type type="application/prs.plucker"/>
  <mime-type type="application/qsig"/>

  <mime-type type="application/vnd.ms-spreadsheetml">
    <root-XML localName="Workbook" namespaceURI="urn:schemas-microsoft-com:office:spreadsheet"/>
    <root-XML localName="Workbook"/>
    <sub-class-of type="application/xml"/>
    <_comment>Excel 2003 xml format, pre-ooxml</_comment>
    <_comment>glob pattern typically *.xls</_comment>
  </mime-type>
  <mime-type type="application/vnd.ms-wordml">
    <root-XML localName="wordDocument" namespaceURI="http://schemas.microsoft.com/office/word/2003/wordml"/>
    <root-XML localName="wordDocument"/>
    <sub-class-of type="application/xml"/>
    <_comment>Word 2003 xml format, pre-ooxml</_comment>
    <_comment>glob pattern typically *.doc</_comment>
  </mime-type>
  <mime-type type="application/vnd.ms-word2006ml">
    <root-XML localName="package" namespaceURI="http://schemas.microsoft.com/office/2006/xmlPackage"/>
    <sub-class-of type="application/xml"/>
    <_comment>Word 2006 xml format, pre-ooxml</_comment>
    <_comment>glob pattern typically *.xml</_comment>
  </mime-type>

  <mime-type type="application/rdf+xml">
    <root-XML localName="RDF"/>
    <root-XML localName="RDF" namespaceURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
    <sub-class-of type="application/xml"/>
    <acronym>RDF/XML</acronym>
    <_comment>XML syntax for RDF graphs</_comment>

    <glob pattern="*.rdf"/>
    <glob pattern="*.owl"/>
    <glob pattern="^rdf$" isregex="true"/>
    <glob pattern="^owl$" isregex="true"/>
    <glob pattern="*.xmp"/>
  </mime-type>

  <mime-type type="application/reginfo+xml">
    <glob pattern="*.rif"/>
  </mime-type>
  <mime-type type="application/relax-ng-compact-syntax">
    <sub-class-of type="text/plain"/>
    <glob pattern="*.rnc"/>
  </mime-type>
  <mime-type type="application/remote-printing"/>
  <mime-type type="application/resource-lists+xml">
    <glob pattern="*.rl"/>
  </mime-type>
  <mime-type type="application/resource-lists-diff+xml">
    <glob pattern="*.rld"/>
  </mime-type>
  <mime-type type="application/riscos"/>
  <mime-type type="application/rlmi+xml"/>
  <mime-type type="application/rls-services+xml">
    <glob pattern="*.rs"/>
  </mime-type>
  <mime-type type="application/rsd+xml">
    <glob pattern="*.rsd"/>
  </mime-type>

  <mime-type type="application/rss+xml">
    <alias type="text/rss"/>
    <root-XML localName="rss"/>
    <root-XML namespaceURI="http://purl.org/rss/1.0/"/>

    <glob pattern="*.rss"/>
  </mime-type>

  <mime-type type="application/rtf">
    <_comment>Rich Text Format File</_comment>
    <alias type="text/rtf"/>
    <magic priority="50">
      <match value="{\\rtf" type="string" offset="0"/>
    </magic>
    <glob pattern="*.rtf"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/rtx"/>
  <mime-type type="application/samlassertion+xml"/>
  <mime-type type="application/samlmetadata+xml"/>
  <mime-type type="application/sbml+xml">
    <glob pattern="*.sbml"/>
  </mime-type>
  <mime-type type="application/scvp-cv-request">
    <glob pattern="*.scq"/>
  </mime-type>
  <mime-type type="application/scvp-cv-response">
    <glob pattern="*.scs"/>
  </mime-type>
  <mime-type type="application/scvp-vp-request">
    <glob pattern="*.spq"/>
  </mime-type>
  <mime-type type="application/scvp-vp-response">
    <glob pattern="*.spp"/>
  </mime-type>
  <mime-type type="application/sdp">
    <glob pattern="*.sdp"/>
  </mime-type>

  <mime-type type="application/sereal">
    <_comment>Sereal binary serialization format</_comment>
    <tika:link>https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod</tika:link>
    <glob pattern="*.srl"/>
  </mime-type>
  <mime-type type="application/sereal;version=1">
    <sub-class-of type="application/sereal"/>
    <magic priority="50">
      <match value="0x6C72733D" type="little32" offset="0">
        <match value="0x01" mask="0x0F" type="string" offset="4"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/sereal;version=2">
    <sub-class-of type="application/sereal"/>
    <magic priority="50">
      <match value="0x6C72733D" type="little32" offset="0">
        <match value="0x02" mask="0x0F" type="string" offset="4"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/sereal;version=3">
    <sub-class-of type="application/sereal"/>
    <magic priority="50">
      <match value="0x6C72F33D" type="little32" offset="0">
        <match value="0x03" mask="0x0F" type="string" offset="4"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="application/set-payment"/>
  <mime-type type="application/set-payment-initiation">
    <glob pattern="*.setpay"/>
  </mime-type>
  <mime-type type="application/set-registration"/>
  <mime-type type="application/set-registration-initiation">
    <glob pattern="*.setreg"/>
  </mime-type>
  <mime-type type="application/sgml"/>
  <mime-type type="application/sgml-open-catalog"/>
  <mime-type type="application/shf+xml">
    <glob pattern="*.shf"/>
  </mime-type>
  <mime-type type="application/sieve"/>
  <mime-type type="application/simple-filter+xml"/>
  <mime-type type="application/simple-message-summary"/>
  <mime-type type="application/simplesymbolcontainer"/>
  <mime-type type="application/slate"/>

  <mime-type type="application/smil+xml">
    <alias type="application/smil"/>
    <_comment>SMIL Multimedia</_comment>
    <root-XML localName="smil"/>
    <sub-class-of type="application/xml"/>
    <glob pattern="*.smi"/>
    <glob pattern="*.smil"/>
    <glob pattern="*.sml"/>
  </mime-type>

  <mime-type type="application/soap+fastinfoset"/>
  <mime-type type="application/soap+xml"/>

  <mime-type type="application/sldworks">
    <_comment>SolidWorks CAD program</_comment>
    <glob pattern="*.sldprt" />
    <glob pattern="*.sldasm" />
    <glob pattern="*.slddrw" />
    <sub-class-of type="application/x-tika-msoffice" />
  </mime-type>

  <mime-type type="application/sparql-query">
    <glob pattern="*.rq"/>
  </mime-type>
  <mime-type type="application/sparql-results+xml">
    <glob pattern="*.srx"/>
  </mime-type>
  <mime-type type="application/spirits-event+xml"/>
  <mime-type type="application/srgs">
    <glob pattern="*.gram"/>
  </mime-type>
  <mime-type type="application/srgs+xml">
    <glob pattern="*.grxml"/>
  </mime-type>
  <mime-type type="application/ssml+xml">
    <glob pattern="*.ssml"/>
  </mime-type>
  <mime-type type="application/timestamp-query"/>
  <mime-type type="application/timestamp-reply"/>
  <mime-type type="application/tve-trigger"/>
  <mime-type type="application/ulpfec"/>
  <mime-type type="application/vemmi"/>
  <mime-type type="application/vividence.scriptfile"/>
  <mime-type type="application/vnd.3gpp.bsf+xml"/>
  <mime-type type="application/vnd.3gpp.pic-bw-large">
    <glob pattern="*.plb"/>
  </mime-type>
  <mime-type type="application/vnd.3gpp.pic-bw-small">
    <glob pattern="*.psb"/>
  </mime-type>
  <mime-type type="application/vnd.3gpp.pic-bw-var">
    <glob pattern="*.pvb"/>
  </mime-type>
  <mime-type type="application/vnd.3gpp.sms"/>
  <mime-type type="application/vnd.3gpp2.bcmcsinfo+xml"/>
  <mime-type type="application/vnd.3gpp2.sms"/>
  <mime-type type="application/vnd.3gpp2.tcap">
    <glob pattern="*.tcap"/>
  </mime-type>
  <mime-type type="application/vnd.3m.post-it-notes">
    <glob pattern="*.pwn"/>
  </mime-type>
  <mime-type type="application/vnd.accpac.simply.aso">
    <glob pattern="*.aso"/>
  </mime-type>
  <mime-type type="application/vnd.accpac.simply.imp">
    <glob pattern="*.imp"/>
  </mime-type>
  <mime-type type="application/vnd.acucobol">
    <glob pattern="*.acu"/>
  </mime-type>
  <mime-type type="application/vnd.acucorp">
    <glob pattern="*.atc"/>
    <glob pattern="*.acutc"/>
  </mime-type>
  <mime-type type="application/vnd.adobe.air-application-installer-package+zip">
    <glob pattern="*.air"/>
  </mime-type>
  <mime-type type="application/vnd.adobe.aftereffects.project">
    <glob pattern="*.aep"/>
  </mime-type>
  <mime-type type="application/vnd.adobe.aftereffects.template">
    <glob pattern="*.aet"/>
  </mime-type>
  <mime-type type="application/vnd.adobe.xdp+xml">
    <glob pattern="*.xdp"/>
  </mime-type>
  <mime-type type="application/vnd.adobe.xfdf">
    <glob pattern="*.xfdf"/>
  </mime-type>
  <mime-type type="application/vnd.aether.imp"/>
  <mime-type type="application/vnd.airzip.filesecure.azf">
    <glob pattern="*.azf"/>
  </mime-type>
  <mime-type type="application/vnd.airzip.filesecure.azs">
    <glob pattern="*.azs"/>
  </mime-type>
  <mime-type type="application/vnd.amazon.ebook">
    <glob pattern="*.azw"/>
  </mime-type>
  <mime-type type="application/vnd.americandynamics.acc">
    <glob pattern="*.acc"/>
  </mime-type>
  <mime-type type="application/vnd.amiga.ami">
    <glob pattern="*.ami"/>
  </mime-type>
  <mime-type type="application/vnd.anser-web-certificate-issue-initiation">
    <glob pattern="*.cii"/>
  </mime-type>
  <mime-type type="application/vnd.anser-web-funds-transfer-initiation">
    <glob pattern="*.fti"/>
  </mime-type>
  <mime-type type="application/vnd.antix.game-component">
    <glob pattern="*.atx"/>
  </mime-type>
  <mime-type type="application/vnd.apple.installer+xml">
    <glob pattern="*.mpkg"/>
  </mime-type>

  <mime-type type="application/vnd.apple.iwork">
    <sub-class-of type="application/zip"/>
  </mime-type>
  <mime-type type="application/vnd.apple.keynote">
    <root-XML localName="presentation" namespaceURI="http://developer.apple.com/namespaces/keynote2" />
    <sub-class-of type="application/vnd.apple.iwork" />
    <glob pattern="*.key"/>
  </mime-type>
  <mime-type type="application/vnd.apple.pages">
    <root-XML localName="document" namespaceURI="http://developer.apple.com/namespaces/sl" />
    <sub-class-of type="application/vnd.apple.iwork" />
    <glob pattern="*.pages"/>
  </mime-type>
  <mime-type type="application/vnd.apple.numbers">
    <root-XML localName="document" namespaceURI="http://developer.apple.com/namespaces/ls" />
    <sub-class-of type="application/vnd.apple.iwork" />
    <glob pattern="*.numbers"/>
  </mime-type>
  <mime-type type="application/x-tika-iworks-protected">
    <sub-class-of type="application/vnd.apple.iwork" />
    <_comment>Password Protected iWorks File</_comment>
  </mime-type>

  <mime-type type="application/vnd.arastra.swi">
    <glob pattern="*.swi"/>
  </mime-type>
  <mime-type type="application/vnd.audiograph"/>
  <mime-type type="application/vnd.autopackage"/>
  <mime-type type="application/vnd.avistar+xml"/>
  <mime-type type="application/vnd.blueice.multipass">
    <glob pattern="*.mpm"/>
  </mime-type>
  <mime-type type="application/vnd.bluetooth.ep.oob"/>
  <mime-type type="application/vnd.bmi">
    <glob pattern="*.bmi"/>
  </mime-type>
  <mime-type type="application/vnd.businessobjects">
    <glob pattern="*.rep"/>
  </mime-type>
  <mime-type type="application/vnd.cab-jscript"/>
  <mime-type type="application/vnd.canon-cpdl"/>
  <mime-type type="application/vnd.canon-lips"/>
  <mime-type type="application/vnd.cendio.thinlinc.clientconf"/>
  <mime-type type="application/vnd.chemdraw+xml">
    <glob pattern="*.cdxml"/>
  </mime-type>
  <mime-type type="application/vnd.chipnuts.karaoke-mmd">
    <glob pattern="*.mmd"/>
  </mime-type>
  <mime-type type="application/vnd.cinderella">
    <glob pattern="*.cdy"/>
  </mime-type>
  <mime-type type="application/vnd.cirpack.isdn-ext"/>
  <mime-type type="application/vnd.claymore">
    <glob pattern="*.cla"/>
  </mime-type>
  <mime-type type="application/vnd.clonk.c4group">
    <glob pattern="*.c4g"/>
    <glob pattern="*.c4d"/>
    <glob pattern="*.c4f"/>
    <glob pattern="*.c4p"/>
    <glob pattern="*.c4u"/>
  </mime-type>
  <mime-type type="application/vnd.commerce-battelle"/>
  <mime-type type="application/vnd.commonspace">
    <glob pattern="*.csp"/>
  </mime-type>
  <mime-type type="application/vnd.contact.cmsg">
    <glob pattern="*.cdbcmsg"/>
  </mime-type>
  <mime-type type="application/vnd.cosmocaller">
    <glob pattern="*.cmc"/>
  </mime-type>
  <mime-type type="application/vnd.crick.clicker">
    <glob pattern="*.clkx"/>
  </mime-type>
  <mime-type type="application/vnd.crick.clicker.keyboard">
    <glob pattern="*.clkk"/>
  </mime-type>
  <mime-type type="application/vnd.crick.clicker.palette">
    <glob pattern="*.clkp"/>
  </mime-type>
  <mime-type type="application/vnd.crick.clicker.template">
    <glob pattern="*.clkt"/>
  </mime-type>
  <mime-type type="application/vnd.crick.clicker.wordbank">
    <glob pattern="*.clkw"/>
  </mime-type>
  <mime-type type="application/vnd.criticaltools.wbs+xml">
    <glob pattern="*.wbs"/>
  </mime-type>
  <mime-type type="application/vnd.ctc-posml">
    <glob pattern="*.pml"/>
  </mime-type>
  <mime-type type="application/vnd.ctct.ws+xml"/>
  <mime-type type="application/vnd.cups-pdf"/>
  <mime-type type="application/vnd.cups-postscript"/>
  <mime-type type="application/vnd.cups-ppd">
    <glob pattern="*.ppd"/>
  </mime-type>
  <mime-type type="application/vnd.cups-raster"/>
  <mime-type type="application/vnd.cups-raw"/>
  <mime-type type="application/vnd.curl.car">
    <glob pattern="*.car"/>
  </mime-type>
  <mime-type type="application/vnd.curl.pcurl">
    <glob pattern="*.pcurl"/>
  </mime-type>
  <mime-type type="application/vnd.cybank"/>
  <mime-type type="application/vnd.data-vision.rdz">
    <glob pattern="*.rdz"/>
  </mime-type>
  <mime-type type="application/vnd.denovo.fcselayout-link">
    <glob pattern="*.fe_launch"/>
  </mime-type>
  <mime-type type="application/vnd.dir-bi.plate-dl-nosuffix"/>
  <mime-type type="application/vnd.dna">
    <glob pattern="*.dna"/>
  </mime-type>
  <mime-type type="application/vnd.dolby.mlp">
    <glob pattern="*.mlp"/>
  </mime-type>
  <mime-type type="application/vnd.dolby.mobile.1"/>
  <mime-type type="application/vnd.dolby.mobile.2"/>
  <mime-type type="application/vnd.dpgraph">
    <glob pattern="*.dpg"/>
  </mime-type>
  <mime-type type="application/vnd.dreamfactory">
    <glob pattern="*.dfac"/>
  </mime-type>
  <mime-type type="application/vnd.dvb.esgcontainer"/>
  <mime-type type="application/vnd.dvb.ipdcdftnotifaccess"/>
  <mime-type type="application/vnd.dvb.ipdcesgaccess"/>
  <mime-type type="application/vnd.dvb.ipdcroaming"/>
  <mime-type type="application/vnd.dvb.iptv.alfec-base"/>
  <mime-type type="application/vnd.dvb.iptv.alfec-enhancement"/>
  <mime-type type="application/vnd.dvb.notif-aggregate-root+xml"/>
  <mime-type type="application/vnd.dvb.notif-container+xml"/>
  <mime-type type="application/vnd.dvb.notif-generic+xml"/>
  <mime-type type="application/vnd.dvb.notif-ia-msglist+xml"/>
  <mime-type type="application/vnd.dvb.notif-ia-registration-request+xml"/>
  <mime-type type="application/vnd.dvb.notif-ia-registration-response+xml"/>
  <mime-type type="application/vnd.dvb.notif-init+xml"/>
  <mime-type type="application/vnd.dxr"/>
  <mime-type type="application/vnd.dynageo">
    <glob pattern="*.geo"/>
  </mime-type>
  <mime-type type="application/vnd.ecdis-update"/>
  <mime-type type="application/vnd.ecowin.chart">
    <glob pattern="*.mag"/>
  </mime-type>
  <mime-type type="application/vnd.ecowin.filerequest"/>
  <mime-type type="application/vnd.ecowin.fileupdate"/>
  <mime-type type="application/vnd.ecowin.series"/>
  <mime-type type="application/vnd.ecowin.seriesrequest"/>
  <mime-type type="application/vnd.ecowin.seriesupdate"/>
  <mime-type type="application/vnd.emclient.accessrequest+xml"/>
  <mime-type type="application/vnd.enliven">
    <glob pattern="*.nml"/>
  </mime-type>
  <mime-type type="application/vnd.epson.esf">
    <glob pattern="*.esf"/>
  </mime-type>
  <mime-type type="application/vnd.epson.msf">
    <glob pattern="*.msf"/>
  </mime-type>
  <mime-type type="application/vnd.epson.quickanime">
    <glob pattern="*.qam"/>
  </mime-type>
  <mime-type type="application/vnd.epson.salt">
    <glob pattern="*.slt"/>
  </mime-type>
  <mime-type type="application/vnd.epson.ssf">
    <glob pattern="*.ssf"/>
  </mime-type>
  <mime-type type="application/vnd.ericsson.quickcall"/>
  <mime-type type="application/vnd.eszigno3+xml">
    <glob pattern="*.es3"/>
    <glob pattern="*.et3"/>
  </mime-type>

  <mime-type type="application/vnd.etsi.asic-e+zip">
    <acronym>ASiC-E</acronym>
    <_comment>Extended Associated Signature Container</_comment>
    <sub-class-of type="application/zip"/>
    <!-- Spec says the Mimetype entry should be the first in the zip -->
    <magic priority="60">
      <match value="PK\003\004" type="string" offset="0">
        <match value="mimetypeapplication/vnd.etsi.asic-e+zip" type="string" offset="30" />
      </match>
    </magic>
    <glob pattern="*.asice" />
  </mime-type>

  <mime-type type="application/vnd.etsi.asic-s+zip">
    <acronym>ASiC-S</acronym>
    <_comment>Simple Associated Signature Container</_comment>
    <sub-class-of type="application/zip"/>
    <!-- Spec says the Mimetype entry should be the first in the zip -->
    <magic priority="60">
      <match value="PK\003\004" type="string" offset="0">
        <match value="mimetypeapplication/vnd.etsi.asic-s+zip" type="string" offset="30" />
      </match>
    </magic>
    <glob pattern="*.asics" />
  </mime-type>

  <mime-type type="application/vnd.etsi.aoc+xml"/>
  <mime-type type="application/vnd.etsi.cug+xml"/>
  <mime-type type="application/vnd.etsi.iptvcommand+xml"/>
  <mime-type type="application/vnd.etsi.iptvdiscovery+xml"/>
  <mime-type type="application/vnd.etsi.iptvprofile+xml"/>
  <mime-type type="application/vnd.etsi.iptvsad-bc+xml"/>
  <mime-type type="application/vnd.etsi.iptvsad-cod+xml"/>
  <mime-type type="application/vnd.etsi.iptvsad-npvr+xml"/>
  <mime-type type="application/vnd.etsi.iptvueprofile+xml"/>
  <mime-type type="application/vnd.etsi.mcid+xml"/>
  <mime-type type="application/vnd.etsi.sci+xml"/>
  <mime-type type="application/vnd.etsi.simservs+xml"/>
  <mime-type type="application/vnd.eudora.data"/>
  <mime-type type="application/vnd.ezpix-album">
    <glob pattern="*.ez2"/>
  </mime-type>
  <mime-type type="application/vnd.ezpix-package">
    <glob pattern="*.ez3"/>
  </mime-type>
  <mime-type type="application/vnd.f-secure.mobile"/>
  <mime-type type="application/vnd.fdf">
    <acronym>FDF</acronym>
    <_comment>Forms Data Format</_comment>
    <tika:link>http://en.wikipedia.org/wiki/Forms_Data_Format</tika:link>
    <tika:link>http://www.adobe.com/devnet/acrobat/fdftoolkit.html</tika:link>
    <tika:uti>com.adobe.fdf</tika:uti>
    <magic priority="50">
      <match value="%FDF-" type="string" offset="0" />
    </magic>
    <glob pattern="*.fdf"/>
  </mime-type>
  <mime-type type="application/vnd.fdsn.mseed">
    <glob pattern="*.mseed"/>
  </mime-type>
  <mime-type type="application/vnd.fdsn.seed">
    <glob pattern="*.seed"/>
    <glob pattern="*.dataless"/>
  </mime-type>
  <mime-type type="application/vnd.ffsns"/>
  <mime-type type="application/vnd.fints"/>
  <mime-type type="application/vnd.flographit">
    <glob pattern="*.gph"/>
  </mime-type>
  <mime-type type="application/vnd.fluxtime.clip">
    <glob pattern="*.ftc"/>
  </mime-type>
  <mime-type type="application/vnd.font-fontforge-sfd"/>
  <mime-type type="application/vnd.framemaker">
    <glob pattern="*.fm"/>
    <glob pattern="*.frame"/>
    <glob pattern="*.maker"/>
    <glob pattern="*.book"/>
  </mime-type>
  <mime-type type="application/vnd.frogans.fnc">
    <glob pattern="*.fnc"/>
  </mime-type>
  <mime-type type="application/vnd.frogans.ltf">
    <glob pattern="*.ltf"/>
  </mime-type>
  <mime-type type="application/vnd.fsc.weblaunch">
    <glob pattern="*.fsc"/>
  </mime-type>
  <mime-type type="application/vnd.fujitsu.oasys">
    <glob pattern="*.oas"/>
  </mime-type>
  <mime-type type="application/vnd.fujitsu.oasys2">
    <glob pattern="*.oa2"/>
  </mime-type>
  <mime-type type="application/vnd.fujitsu.oasys3">
    <glob pattern="*.oa3"/>
  </mime-type>
  <mime-type type="application/vnd.fujitsu.oasysgp">
    <glob pattern="*.fg5"/>
  </mime-type>
  <mime-type type="application/vnd.fujitsu.oasysprs">
    <glob pattern="*.bh2"/>
  </mime-type>
  <mime-type type="application/vnd.fujixerox.art-ex"/>
  <mime-type type="application/vnd.fujixerox.art4"/>
  <mime-type type="application/vnd.fujixerox.hbpl"/>
  <mime-type type="application/vnd.fujixerox.ddd">
    <glob pattern="*.ddd"/>
  </mime-type>
  <mime-type type="application/vnd.fujixerox.docuworks">
    <glob pattern="*.xdw"/>
  </mime-type>
  <mime-type type="application/vnd.fujixerox.docuworks.binder">
    <glob pattern="*.xbd"/>
  </mime-type>
  <mime-type type="application/vnd.fut-misnet"/>
  <mime-type type="application/vnd.fuzzysheet">
    <glob pattern="*.fzs"/>
  </mime-type>
  <mime-type type="application/vnd.genomatix.tuxedo">
    <glob pattern="*.txd"/>
  </mime-type>
  <mime-type type="application/vnd.geogebra.file">
    <glob pattern="*.ggb"/>
  </mime-type>
  <mime-type type="application/vnd.geogebra.tool">
    <glob pattern="*.ggt"/>
  </mime-type>
  <mime-type type="application/vnd.geometry-explorer">
    <glob pattern="*.gex"/>
    <glob pattern="*.gre"/>
  </mime-type>
  <mime-type type="application/vnd.gmx">
    <glob pattern="*.gmx"/>
  </mime-type>

  <mime-type type="application/vnd.google-earth.kml+xml">
    <root-XML localName="kml"/>
    <root-XML namespaceURI="http://www.opengis.net/kml/2.2" localName="kml"/>
    <root-XML namespaceURI="http://earth.google.com/kml/2.0" localName="kml"/>
    <root-XML namespaceURI="http://earth.google.com/kml/2.1" localName="kml"/>
    <root-XML namespaceURI="http://earth.google.com/kml/2.2" localName="kml"/>
    <acronym>KML</acronym>
    <_comment>Keyhole Markup Language</_comment>
    <glob pattern="*.kml"/>
    <sub-class-of type="application/xml"/>
  </mime-type>

  <mime-type type="application/vnd.google-earth.kmz">
    <sub-class-of type="application/zip"/>
    <glob pattern="*.kmz"/>
  </mime-type>
  <mime-type type="application/vnd.grafeq">
    <glob pattern="*.gqf"/>
    <glob pattern="*.gqs"/>
  </mime-type>
  <mime-type type="application/vnd.gridmp"/>
  <mime-type type="application/vnd.groove-account">
    <glob pattern="*.gac"/>
  </mime-type>
  <mime-type type="application/vnd.groove-help">
    <glob pattern="*.ghf"/>
  </mime-type>
  <mime-type type="application/vnd.groove-identity-message">
    <glob pattern="*.gim"/>
  </mime-type>
  <mime-type type="application/vnd.groove-injector">
    <glob pattern="*.grv"/>
  </mime-type>
  <mime-type type="application/vnd.groove-tool-message">
    <glob pattern="*.gtm"/>
  </mime-type>
  <mime-type type="application/vnd.groove-tool-template">
    <glob pattern="*.tpl"/>
  </mime-type>
  <mime-type type="application/vnd.groove-vcard">
    <glob pattern="*.vcg"/>
  </mime-type>
  <mime-type type="application/vnd.handheld-entertainment+xml">
    <glob pattern="*.zmm"/>
  </mime-type>
  <mime-type type="application/vnd.hbci">
    <glob pattern="*.hbci"/>
  </mime-type>
  <mime-type type="application/vnd.hcl-bireports"/>
  <mime-type type="application/vnd.hhe.lesson-player">
    <glob pattern="*.les"/>
  </mime-type>
  <mime-type type="application/vnd.hp-hpgl">
    <glob pattern="*.hpgl"/>
  </mime-type>
  <mime-type type="application/vnd.hp-hpid">
    <glob pattern="*.hpid"/>
  </mime-type>
  <mime-type type="application/vnd.hp-hps">
    <glob pattern="*.hps"/>
  </mime-type>
  <mime-type type="application/vnd.hp-jlyt">
    <glob pattern="*.jlt"/>
  </mime-type>
  <mime-type type="application/vnd.hp-pcl">
    <glob pattern="*.pcl"/>
  </mime-type>
  <mime-type type="application/vnd.hp-pclxl">
    <glob pattern="*.pclxl"/>
  </mime-type>
  <mime-type type="application/vnd.httphone"/>
  <mime-type type="application/vnd.hydrostatix.sof-data">
    <glob pattern="*.sfd-hdstx"/>
  </mime-type>
  <mime-type type="application/vnd.hzn-3d-crossword">
    <glob pattern="*.x3d"/>
  </mime-type>
  <mime-type type="application/vnd.ibm.afplinedata"/>
  <mime-type type="application/vnd.ibm.electronic-media"/>
  <mime-type type="application/vnd.ibm.minipay">
    <glob pattern="*.mpy"/>
  </mime-type>
  <mime-type type="application/vnd.ibm.modcap">
    <glob pattern="*.afp"/>
    <glob pattern="*.listafp"/>
    <glob pattern="*.list3820"/>
  </mime-type>
  <mime-type type="application/vnd.ibm.rights-management">
    <glob pattern="*.irm"/>
  </mime-type>
  <mime-type type="application/vnd.ibm.secure-container">
    <glob pattern="*.sc"/>
  </mime-type>
  <mime-type type="application/vnd.iccprofile">
    <glob pattern="*.icc"/>
    <glob pattern="*.icm"/>
  </mime-type>
  <mime-type type="application/vnd.igloader">
    <glob pattern="*.igl"/>
  </mime-type>
  <mime-type type="application/vnd.immervision-ivp">
    <glob pattern="*.ivp"/>
  </mime-type>
  <mime-type type="application/vnd.immervision-ivu">
    <glob pattern="*.ivu"/>
  </mime-type>
  <mime-type type="application/vnd.informedcontrol.rms+xml"/>
  <mime-type type="application/vnd.informix-visionary"/>
  <mime-type type="application/vnd.intercon.formnet">
    <glob pattern="*.xpw"/>
    <glob pattern="*.xpx"/>
  </mime-type>
  <mime-type type="application/vnd.intertrust.digibox"/>
  <mime-type type="application/vnd.intertrust.nncp"/>
  <mime-type type="application/vnd.intu.qbo">
    <glob pattern="*.qbo"/>
  </mime-type>
  <mime-type type="application/vnd.intu.qfx">
    <glob pattern="*.qfx"/>
  </mime-type>
  <mime-type type="application/vnd.iptc.g2.catalogitem+xml"/>
  <mime-type type="application/vnd.iptc.g2.conceptitem+xml"/>
  <mime-type type="application/vnd.iptc.g2.knowledgeitem+xml"/>
  <mime-type type="application/vnd.iptc.g2.newsitem+xml"/>
    
  <mime-type type="application/vnd.iptc.g2.newsmessage+xml">
    <root-XML localName="newsMessage"/>
    <root-XML localName="newsMessage" namespaceURI="http://iptc.org/std/nar/2006-10-01/"/>
    <sub-class-of type="application/xml"/>
    <_comment>XML syntax for IPTC NewsMessages</_comment>
    <glob pattern="*.nar"/>
  </mime-type>
  
  <mime-type type="application/vnd.iptc.g2.packageitem+xml"/>
  <mime-type type="application/vnd.iptc.g2.planningitem+xml"/>

  <mime-type type="application/vnd.ipunplugged.rcprofile">
    <glob pattern="*.rcprofile"/>
  </mime-type>
  <mime-type type="application/vnd.irepository.package+xml">
    <glob pattern="*.irp"/>
  </mime-type>
  <mime-type type="application/vnd.is-xpr">
    <glob pattern="*.xpr"/>
  </mime-type>
  <mime-type type="application/vnd.jam">
    <glob pattern="*.jam"/>
  </mime-type>
  <mime-type type="application/vnd.japannet-directory-service"/>
  <mime-type type="application/vnd.japannet-jpnstore-wakeup"/>
  <mime-type type="application/vnd.japannet-payment-wakeup"/>
  <mime-type type="application/vnd.japannet-registration"/>
  <mime-type type="application/vnd.japannet-registration-wakeup"/>
  <mime-type type="application/vnd.japannet-setstore-wakeup"/>
  <mime-type type="application/vnd.japannet-verification"/>
  <mime-type type="application/vnd.japannet-verification-wakeup"/>
  <mime-type type="application/vnd.jcp.javame.midlet-rms">
    <glob pattern="*.rms"/>
  </mime-type>
  <mime-type type="application/vnd.jisp">
    <glob pattern="*.jisp"/>
  </mime-type>
  <mime-type type="application/vnd.joost.joda-archive">
    <glob pattern="*.joda"/>
  </mime-type>
  <mime-type type="application/vnd.kahootz">
    <glob pattern="*.ktz"/>
    <glob pattern="*.ktr"/>
  </mime-type>
  <mime-type type="application/vnd.kde.karbon">
    <glob pattern="*.karbon"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kchart">
    <alias type="application/x-kchart"/>
    <_comment>KChart File</_comment>
    <glob pattern="*.chrt"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kformula">
    <glob pattern="*.kfo"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kivio">
    <glob pattern="*.flw"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kontour">
    <glob pattern="*.kon"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kpresenter">
    <alias type="application/x-kpresenter"/>
    <_comment>KPresenter File</_comment>
    <glob pattern="*.kpr"/>
    <glob pattern="*.kpt"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kspread">
    <alias type="application/x-kspread"/>
    <_comment>KSpread File</_comment>
    <glob pattern="*.ksp"/>
  </mime-type>

  <mime-type type="application/vnd.kde.kword">
    <alias type="application/x-kword"/>
    <_comment>KWord File</_comment>
    <glob pattern="*.kwd"/>
    <glob pattern="*.kwt"/>
  </mime-type>

  <mime-type type="application/vnd.kenameaapp">
    <glob pattern="*.htke"/>
  </mime-type>
  <mime-type type="application/vnd.kidspiration">
    <glob pattern="*.kia"/>
  </mime-type>
  <mime-type type="application/vnd.kinar">
    <glob pattern="*.kne"/>
    <glob pattern="*.knp"/>
  </mime-type>
  <mime-type type="application/vnd.koan">
    <alias type="application/x-koan"/>
    <_comment>SSEYO Koan File</_comment>
    <glob pattern="*.skp"/>
    <glob pattern="*.skd"/>
    <glob pattern="*.skt"/>
    <glob pattern="*.skm"/>
  </mime-type>
  <mime-type type="application/vnd.kodak-descriptor">
    <glob pattern="*.sse"/>
  </mime-type>
  <mime-type type="application/vnd.liberty-request+xml"/>
  <mime-type type="application/vnd.llamagraphics.life-balance.desktop">
    <glob pattern="*.lbd"/>
  </mime-type>
  <mime-type type="application/vnd.llamagraphics.life-balance.exchange+xml">
    <glob pattern="*.lbe"/>
  </mime-type>
  <mime-type type="application/vnd.lotus-1-2-3">
    <glob pattern="*.123"/>
  </mime-type>
  <mime-type type="application/vnd.lotus-approach">
    <glob pattern="*.apr"/>
  </mime-type>
  <mime-type type="application/vnd.lotus-freelance">
    <glob pattern="*.pre"/>
  </mime-type>
  <mime-type type="application/vnd.lotus-notes">
    <glob pattern="*.nsf"/>
  </mime-type>
  <mime-type type="application/vnd.lotus-organizer">
    <glob pattern="*.org"/>
  </mime-type>

  <mime-type type="application/vnd.lotus-screencam">
    <!-- <glob pattern="*.scm"/> - conflicts with text/x-scheme -->
  </mime-type>

  <mime-type type="application/vnd.lotus-wordpro">
    <magic priority="50">
      <match value="WordPro\0" type="string" offset="0" />
      <match value="WordPro\r\373" type="string" offset="0" />
    </magic>
    <glob pattern="*.lwp"/>
  </mime-type>

  <mime-type type="application/vnd.macports.portpkg">
    <glob pattern="*.portpkg"/>
  </mime-type>
  <mime-type type="application/vnd.marlin.drm.actiontoken+xml"/>
  <mime-type type="application/vnd.marlin.drm.conftoken+xml"/>
  <mime-type type="application/vnd.marlin.drm.license+xml"/>
  <mime-type type="application/vnd.marlin.drm.mdcf"/>
  <mime-type type="application/vnd.mcd">
    <glob pattern="*.mcd"/>
  </mime-type>
  <mime-type type="application/vnd.medcalcdata">
    <glob pattern="*.mc1"/>
  </mime-type>
  <mime-type type="application/vnd.mediastation.cdkey">
    <glob pattern="*.cdkey"/>
  </mime-type>
  <mime-type type="application/vnd.meridian-slingshot"/>
  <mime-type type="application/vnd.mfer">
    <glob pattern="*.mwf"/>
  </mime-type>
  <mime-type type="application/vnd.mfmp">
    <glob pattern="*.mfm"/>
  </mime-type>
  <mime-type type="application/vnd.micrografx.flo">
    <glob pattern="*.flo"/>
  </mime-type>
  <mime-type type="application/vnd.micrografx.igx">
    <glob pattern="*.igx"/>
  </mime-type>

  <mime-type type="application/vnd.mif">
    <_comment>FrameMaker Interchange Format</_comment>
    <alias type="application/x-mif"/>
    <alias type="application/x-frame"/>
    <magic priority="50">
      <match value="&lt;MakerFile" type="string" offset="0" />
      <match value="&lt;MIFFile" type="string" offset="0" />
      <match value="&lt;MakerDictionary" type="string" offset="0" />
      <match value="&lt;MakerScreenFont" type="string" offset="0" />
      <match value="&lt;MML" type="string" offset="0" />
      <match value="&lt;Book" type="string" offset="0" />
      <match value="&lt;Maker" type="string" offset="0" />
    </magic>
    <glob pattern="*.mif"/>
  </mime-type>

  <mime-type type="application/vnd.mindjet.mindmanager">
    <_comment>MindManager</_comment>
    <sub-class-of type="application/zip"/>
    <glob pattern="*.mmp"/>
    <glob pattern="*.mmap"/>
    <glob pattern="*.mmpt"/>
    <glob pattern="*.mmat"/>
    <glob pattern="*.mmmp"/>
    <glob pattern="*.mmas"/>
  </mime-type>

  <mime-type type="application/vnd.minisoft-hp3000-save"/>
  <mime-type type="application/vnd.mitsubishi.misty-guard.trustweb"/>
  <mime-type type="application/vnd.mobius.daf">
    <glob pattern="*.daf"/>
  </mime-type>
  <mime-type type="application/vnd.mobius.dis">
    <glob pattern="*.dis"/>
  </mime-type>
  <mime-type type="application/vnd.mobius.mbk">
    <glob pattern="*.mbk"/>
  </mime-type>
  <mime-type type="application/vnd.mobius.mqy">
    <glob pattern="*.mqy"/>
  </mime-type>
  <mime-type type="application/vnd.mobius.msl">
    <glob pattern="*.msl"/>
  </mime-type>
  <mime-type type="application/vnd.mobius.plc">
    <glob pattern="*.plc"/>
  </mime-type>
  <mime-type type="application/vnd.mobius.txf">
    <glob pattern="*.txf"/>
  </mime-type>
  <mime-type type="application/vnd.mophun.application">
    <glob pattern="*.mpn"/>
  </mime-type>
  <mime-type type="application/vnd.mophun.certificate">
    <glob pattern="*.mpc"/>
  </mime-type>
  <mime-type type="application/vnd.motorola.flexsuite"/>
  <mime-type type="application/vnd.motorola.flexsuite.adsi"/>
  <mime-type type="application/vnd.motorola.flexsuite.fis"/>
  <mime-type type="application/vnd.motorola.flexsuite.gotap"/>
  <mime-type type="application/vnd.motorola.flexsuite.kmr"/>
  <mime-type type="application/vnd.motorola.flexsuite.ttc"/>
  <mime-type type="application/vnd.motorola.flexsuite.wem"/>
  <mime-type type="application/vnd.motorola.iprm"/>
  <mime-type type="application/vnd.mozilla.xul+xml">
    <glob pattern="*.xul"/>
  </mime-type>
  <mime-type type="application/vnd.ms-artgalry">
    <glob pattern="*.cil"/>
  </mime-type>
  <mime-type type="application/vnd.ms-asf"/>
  <mime-type type="application/vnd.ms-cab-compressed">
    <magic priority="50">
      <match value="MSCF\000\000\000\000" type="string" offset="0"/>
    </magic>
    <glob pattern="*.cab"/>
    <magic priority="50">
      <match value="MSCF" type="string" offset="0" />
    </magic>
  </mime-type>

  <!-- http://www.iana.org/assignments/media-types/application/vnd.ms-excel -->
  <mime-type type="application/vnd.ms-excel">
    <!-- Use DefaultDetector / org.apache.tika.parser.microsoft.POIFSContainerDetector for more reliable detection of OLE2 documents -->
    <alias type="application/msexcel" />
    <_comment>Microsoft Excel Spreadsheet</_comment>
    <magic priority="50">
      <match value="Microsoft\ Excel\ 5.0\ Worksheet" type="string" offset="2080"/>
      <match value="Foglio\ di\ lavoro\ Microsoft\ Exce" type="string" offset="2080"/>
      <match value="Biff5" type="string" offset="2114"/>
      <match value="Biff5" type="string" offset="2121"/>
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="W\x00o\x00r\x00k\x00b\x00o\x00o\x00k" type="string" offset="1152:4096" />
      </match>
    </magic>
    <glob pattern="*.xls"/>
    <glob pattern="*.xlm"/>
    <glob pattern="*.xla"/>
    <glob pattern="*.xlc"/>
    <glob pattern="*.xlt"/>
    <glob pattern="*.xlw"/>
    <glob pattern="*.xll"/>
    <glob pattern="*.xld"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.addin.macroenabled.12">
    <_comment>Office Open XML Workbook Add-in (macro-enabled)</_comment>
    <glob pattern="*.xlam"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.sheet.macroenabled.12">
    <_comment>Office Open XML Workbook (macro-enabled)</_comment>
    <glob pattern="*.xlsm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.sheet.binary.macroenabled.12">
    <_comment>Microsoft Excel 2007 Binary Spreadsheet</_comment>
    <glob pattern="*.xlsb"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.sheet.4">
    <_comment>Microsoft Excel 4 Worksheet</_comment>
    <magic priority="60">
      <match value="0x09040600" type="string" offset="0">
        <match value="0x00001000" type="string" offset="4"/> <!-- Sheet -->
        <match value="0x00002000" type="string" offset="4"/> <!-- Chart -->
        <match value="0x00004000" type="string" offset="4"/> <!-- Macro -->
      </match>
    </magic>
    <sub-class-of type="application/x-tika-old-excel"/>
  </mime-type>
  <mime-type type="application/vnd.ms-excel.workspace.4">
    <_comment>Microsoft Excel 4 Workspace</_comment>
    <magic priority="60">
      <match value="0x09040600" type="string" offset="0">
        <match value="0x00000001" type="string" offset="4"/>
      </match>
    </magic>
    <sub-class-of type="application/x-tika-old-excel"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.sheet.3">
    <_comment>Microsoft Excel 3 Worksheet</_comment>
    <magic priority="60">
      <match value="0x09020600" type="string" offset="0">
        <match value="0x00001000" type="string" offset="4"/> <!-- Sheet -->
        <match value="0x00002000" type="string" offset="4"/> <!-- Chart -->
        <match value="0x00004000" type="string" offset="4"/> <!-- Macro -->
      </match>
    </magic>
    <sub-class-of type="application/x-tika-old-excel"/>
  </mime-type>
  <mime-type type="application/vnd.ms-excel.workspace.3">
    <_comment>Microsoft Excel 3 Workspace</_comment>
    <magic priority="60">
      <match value="0x09020600" type="string" offset="0">
        <match value="0x00000001" type="string" offset="4"/>
      </match>
    </magic>
    <sub-class-of type="application/x-tika-old-excel"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.sheet.2">
    <_comment>Microsoft Excel 2 Worksheet</_comment>
    <magic priority="60">
      <match value="0x09000400" type="string" offset="0">
        <match value="0x00001000" type="string" offset="4"/> <!-- Sheet -->
        <match value="0x00002000" type="string" offset="4"/> <!-- Chart -->
        <match value="0x00004000" type="string" offset="4"/> <!-- Macro -->
      </match>
    </magic>
    <sub-class-of type="application/x-tika-old-excel"/>
  </mime-type>

  <mime-type type="application/vnd.ms-fontobject">
    <glob pattern="*.eot"/>
  </mime-type>
  <mime-type type="application/vnd.ms-htmlhelp">
    <glob pattern="*.chm"/>
    <magic priority="50">
      <match value="ITSF" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/vnd.ms-ims">
    <glob pattern="*.ims"/>
  </mime-type>
  <mime-type type="application/vnd.ms-lrm">
    <glob pattern="*.lrm"/>
  </mime-type>

  <mime-type type="application/vnd.ms-outlook">
    <_comment>Microsoft Outlook Message</_comment>
    <glob pattern="*.msg" />
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/vnd.ms-outlook-pst">
    <_comment>Outlook Personal Folders File Format</_comment>
    <magic priority="50">
       <match value="!BDN....SM" type="string" offset="0" mask="0xFFFFFFFF00000000FFFF"/>
    </magic>
    <glob pattern="*.pst"/>
    <glob pattern="*.ost"/>
  </mime-type>

  <mime-type type="application/vnd.ms-pki.seccat">
    <glob pattern="*.cat"/>
  </mime-type>
  <mime-type type="application/vnd.ms-pki.stl">
    <glob pattern="*.stl"/>
  </mime-type>
  <mime-type type="application/vnd.ms-playready.initiator+xml"/>

  <!-- http://www.iana.org/assignments/media-types/application/vnd.ms-powerpoint -->
  <mime-type type="application/vnd.ms-powerpoint">
    <!-- Use DefaultDetector / org.apache.tika.parser.microsoft.POIFSContainerDetector for more reliable detection of OLE2 documents -->
    <alias type="application/mspowerpoint"/>
    <_comment>Microsoft Powerpoint Presentation</_comment>
    <magic priority="50">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="P\x00o\x00w\x00e\x00r\x00P\x00o\x00i\x00n\x00t\x00 D\x00o\x00c\x00u\x00m\x00e\x00n\x00t" type="string" offset="1152:4096" />
      </match>
    </magic>
    <glob pattern="*.ppt"/>
    <glob pattern="*.ppz"/>
    <glob pattern="*.pps"/>
    <glob pattern="*.pot"/>
    <glob pattern="*.ppa"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/vnd.ms-powerpoint.addin.macroenabled.12">
    <_comment>Office Open XML Presentation Add-in (macro-enabled)</_comment>
    <glob pattern="*.ppam"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-powerpoint.presentation.macroenabled.12">
    <_comment>Office Open XML Presentation (macro-enabled)</_comment>
    <glob pattern="*.pptm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-powerpoint.slide.macroenabled.12">
    <glob pattern="*.sldm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-powerpoint.slideshow.macroenabled.12">
    <_comment>Office Open XML Presentation Slideshow (macro-enabled)</_comment>
    <glob pattern="*.ppsm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-powerpoint.template.macroenabled.12">
    <glob pattern="*.potm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-project">
    <glob pattern="*.mpp"/>
    <glob pattern="*.mpt"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/x-project">
    <glob pattern="*.mpx"/>
    <magic priority="50">
      <match value="MPX,Microsoft Project for Windows," type="string" offset="0"/>
    </magic>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/vnd.ms-tnef">
    <alias type="application/ms-tnef" />
    <magic priority="50">
      <match value="0x223e9f78" type="little32" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/vnd.ms-wmdrm.lic-chlg-req"/>
  <mime-type type="application/vnd.ms-wmdrm.lic-resp"/>
  <mime-type type="application/vnd.ms-wmdrm.meter-chlg-req"/>
  <mime-type type="application/vnd.ms-wmdrm.meter-resp"/>

  <mime-type type="application/vnd.ms-word.document.macroenabled.12">
    <_comment>Office Open XML Document (macro-enabled)</_comment>
    <glob pattern="*.docm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-word.template.macroenabled.12">
    <_comment>Office Open XML Document Template (macro-enabled)</_comment>
    <glob pattern="*.dotm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-works">
    <magic priority="50">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="M\x00a\x00t\x00O\x00S\x00T" type="string" offset="1152:4096" />
      </match>
    </magic>
    <glob pattern="*.wps"/>
    <glob pattern="*.wks"/>
    <glob pattern="*.wcm"/>
    <glob pattern="*.wdb"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/vnd.ms-wpl">
    <glob pattern="*.wpl"/>
  </mime-type>
  <mime-type type="application/vnd.ms-xpsdocument">
    <alias type="application/oxps"/>
    <_comment>Open XML Paper Specification</_comment>
    <glob pattern="*.xps"/>
    <glob pattern="*.oxps"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>
  <mime-type type="application/vnd.mseq">
    <glob pattern="*.mseq"/>
  </mime-type>
  <mime-type type="application/vnd.msign"/>
  <mime-type type="application/vnd.multiad.creator"/>
  <mime-type type="application/vnd.multiad.creator.cif"/>
  <mime-type type="application/vnd.music-niff"/>
  <mime-type type="application/vnd.musician">
    <glob pattern="*.mus"/>
  </mime-type>
  <mime-type type="application/vnd.muvee.style">
    <glob pattern="*.msty"/>
  </mime-type>
  <mime-type type="application/vnd.ncd.control"/>
  <mime-type type="application/vnd.ncd.reference"/>
  <mime-type type="application/vnd.nervana"/>
  <mime-type type="application/vnd.netfpx"/>
  <mime-type type="application/vnd.neurolanguage.nlu">
    <glob pattern="*.nlu"/>
  </mime-type>
  <mime-type type="application/vnd.noblenet-directory">
    <glob pattern="*.nnd"/>
  </mime-type>
  <mime-type type="application/vnd.noblenet-sealer">
    <glob pattern="*.nns"/>
  </mime-type>
  <mime-type type="application/vnd.noblenet-web">
    <glob pattern="*.nnw"/>
  </mime-type>
  <mime-type type="application/vnd.nokia.catalogs"/>
  <mime-type type="application/vnd.nokia.conml+wbxml"/>
  <mime-type type="application/vnd.nokia.conml+xml"/>
  <mime-type type="application/vnd.nokia.isds-radio-presets"/>
  <mime-type type="application/vnd.nokia.iptv.config+xml"/>
  <mime-type type="application/vnd.nokia.landmark+wbxml"/>
  <mime-type type="application/vnd.nokia.landmark+xml"/>
  <mime-type type="application/vnd.nokia.landmarkcollection+xml"/>
  <mime-type type="application/vnd.nokia.n-gage.ac+xml"/>
  <mime-type type="application/vnd.nokia.n-gage.data">
    <glob pattern="*.ngdat"/>
  </mime-type>
  <mime-type type="application/vnd.nokia.n-gage.symbian.install">
    <glob pattern="*.n-gage"/>
  </mime-type>
  <mime-type type="application/vnd.nokia.ncd"/>
  <mime-type type="application/vnd.nokia.pcd+wbxml"/>
  <mime-type type="application/vnd.nokia.pcd+xml"/>
  <mime-type type="application/vnd.nokia.radio-preset">
    <glob pattern="*.rpst"/>
  </mime-type>
  <mime-type type="application/vnd.nokia.radio-presets">
    <glob pattern="*.rpss"/>
  </mime-type>
  <mime-type type="application/vnd.novadigm.edm">
    <glob pattern="*.edm"/>
  </mime-type>
  <mime-type type="application/vnd.novadigm.edx">
    <glob pattern="*.edx"/>
  </mime-type>
  <mime-type type="application/vnd.novadigm.ext">
    <glob pattern="*.ext"/>
  </mime-type>

  <!-- =================================================================== -->
  <!-- Open Document Format for Office Applications (OpenDocument) v1.0    -->
  <!-- http://www.oasis-open.org/specs/index.php#opendocumentv1.0          -->
  <!-- =================================================================== -->

  <mime-type type="application/vnd.oasis.opendocument.chart">
    <alias type="application/x-vnd.oasis.opendocument.chart"/>
    <_comment>OpenDocument v1.0: Chart document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.chart"/>
      </match>
    </magic>
    <glob pattern="*.odc"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.chart-template">
    <alias type="application/x-vnd.oasis.opendocument.chart-template"/>
    <_comment>OpenDocument v1.0: Chart document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.chart-template"/>
      </match>
    </magic>
    <glob pattern="*.otc"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.base">
    <alias type="application/vnd.oasis.opendocument.database"/>
    <glob pattern="*.odb"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.formula">
    <alias type="application/x-vnd.oasis.opendocument.formula"/>
    <_comment>OpenDocument v1.0: Formula document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.formula" />
      </match>
    </magic>
    <glob pattern="*.odf"/>
    <sub-class-of type="application/zip"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.formula-template">
    <alias type="application/x-vnd.oasis.opendocument.formula-template"/>
    <_comment>OpenDocument v1.0: Formula document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.formula-template"/>
      </match>
    </magic>
    <glob pattern="*.odft"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.graphics">
    <alias type="application/x-vnd.oasis.opendocument.graphics"/>
    <_comment>OpenDocument v1.0: Graphics document (Drawing)</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.graphics"/>
      </match>
    </magic>
    <glob pattern="*.odg"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.graphics-template">
    <alias type="application/x-vnd.oasis.opendocument.graphics-template"/>
    <_comment>OpenDocument v1.0: Graphics document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.graphics-template"/>
      </match>
    </magic>
    <glob pattern="*.otg"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.image">
    <alias type="application/x-vnd.oasis.opendocument.image"/>
    <_comment>OpenDocument v1.0: Image document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.image"/>
      </match>
    </magic>
    <glob pattern="*.odi"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.image-template">
    <alias type="application/x-vnd.oasis.opendocument.image-template"/>
    <_comment>OpenDocument v1.0: Image document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.image-template"/>
      </match>
    </magic>
    <glob pattern="*.oti"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.presentation">
    <alias type="application/x-vnd.oasis.opendocument.presentation"/>
    <_comment>OpenDocument v1.0: Presentation document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.presentation"/>
      </match>
    </magic>
    <glob pattern="*.odp"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.presentation-template">
    <alias type="application/x-vnd.oasis.opendocument.presentation-template"/>
    <_comment>OpenDocument v1.0: Presentation document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
              value="mimetypeapplication/vnd.oasis.opendocument.presentation-template"/>
      </match>
    </magic>
    <glob pattern="*.otp"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.spreadsheet">
    <alias type="application/x-vnd.oasis.opendocument.spreadsheet"/>
    <_comment>OpenDocument v1.0: Spreadsheet document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.spreadsheet"/>
      </match>
    </magic>
    <glob pattern="*.ods"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.spreadsheet-template">
    <alias type="application/x-vnd.oasis.opendocument.spreadsheet-template"/>
    <_comment>OpenDocument v1.0: Spreadsheet document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.spreadsheet-template"/>
      </match>
    </magic>
    <glob pattern="*.ots"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.text">
    <alias type="application/x-vnd.oasis.opendocument.text"/>
    <_comment>OpenDocument v1.0: Text document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.text"/>
      </match>
    </magic>
    <glob pattern="*.odt"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.text-master">
    <alias type="application/x-vnd.oasis.opendocument.text-master"/>
    <_comment>OpenDocument v1.0: Global Text document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
               value="mimetypeapplication/vnd.oasis.opendocument.text-master"/>
      </match>
    </magic>
    <glob pattern="*.otm"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.text-template">
    <alias type="application/x-vnd.oasis.opendocument.text-template"/>
    <_comment>OpenDocument v1.0: Text document used as template</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
              value="mimetypeapplication/vnd.oasis.opendocument.text-template"/>
      </match>
    </magic>
    <glob pattern="*.ott"/>
  </mime-type>

  <mime-type type="application/vnd.oasis.opendocument.text-web">
    <alias type="application/x-vnd.oasis.opendocument.text-web"/>
    <_comment>OpenDocument v1.0: Text document used as template for HTML documents</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
              value="mimetypeapplication/vnd.oasis.opendocument.text-web"/>
      </match>
    </magic>
    <glob pattern="*.oth"/>
  </mime-type>

  <mime-type type="application/vnd.obn"/>
  <mime-type type="application/vnd.olpc-sugar">
    <glob pattern="*.xo"/>
  </mime-type>
  <mime-type type="application/vnd.oma-scws-config"/>
  <mime-type type="application/vnd.oma-scws-http-request"/>
  <mime-type type="application/vnd.oma-scws-http-response"/>
  <mime-type type="application/vnd.oma.bcast.associated-procedure-parameter+xml"/>
  <mime-type type="application/vnd.oma.bcast.drm-trigger+xml"/>
  <mime-type type="application/vnd.oma.bcast.imd+xml"/>
  <mime-type type="application/vnd.oma.bcast.ltkm"/>
  <mime-type type="application/vnd.oma.bcast.notification+xml"/>
  <mime-type type="application/vnd.oma.bcast.provisioningtrigger"/>
  <mime-type type="application/vnd.oma.bcast.sgboot"/>
  <mime-type type="application/vnd.oma.bcast.sgdd+xml"/>
  <mime-type type="application/vnd.oma.bcast.sgdu"/>
  <mime-type type="application/vnd.oma.bcast.simple-symbol-container"/>
  <mime-type type="application/vnd.oma.bcast.smartcard-trigger+xml"/>
  <mime-type type="application/vnd.oma.bcast.sprov+xml"/>
  <mime-type type="application/vnd.oma.bcast.stkm"/>
  <mime-type type="application/vnd.oma.dcd"/>
  <mime-type type="application/vnd.oma.dcdc"/>
  <mime-type type="application/vnd.oma.dd2+xml">
    <glob pattern="*.dd2"/>
  </mime-type>
  <mime-type type="application/vnd.oma.drm.risd+xml"/>
  <mime-type type="application/vnd.oma.group-usage-list+xml"/>
  <mime-type type="application/vnd.oma.poc.detailed-progress-report+xml"/>
  <mime-type type="application/vnd.oma.poc.final-report+xml"/>
  <mime-type type="application/vnd.oma.poc.groups+xml"/>
  <mime-type type="application/vnd.oma.poc.invocation-descriptor+xml"/>
  <mime-type type="application/vnd.oma.poc.optimized-progress-report+xml"/>
  <mime-type type="application/vnd.oma.xcap-directory+xml"/>
  <mime-type type="application/vnd.omads-email+xml"/>
  <mime-type type="application/vnd.omads-file+xml"/>
  <mime-type type="application/vnd.omads-folder+xml"/>
  <mime-type type="application/vnd.omaloc-supl-init"/>

  <mime-type type="application/vnd.openofficeorg.extension">
    <glob pattern="*.oxt"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.presentationml.presentation">
    <_comment>Office Open XML Presentation</_comment>
    <glob pattern="*.pptx"/>
    <glob pattern="*.thmx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.presentationml.slide">
    <glob pattern="*.sldx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.presentationml.template">
    <_comment>Office Open XML Presentation Template</_comment>
    <glob pattern="*.potx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.presentationml.slideshow">
    <_comment>Office Open XML Presentation Slideshow</_comment>
    <glob pattern="*.ppsx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
    <_comment>Office Open XML Workbook</_comment>
    <glob pattern="*.xlsx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.spreadsheetml.template">
    <_comment>Office Open XML Workbook Template</_comment>
    <glob pattern="*.xltx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.ms-excel.template.macroenabled.12">
    <_comment>Office Open XML Workbook Template (macro-enabled)</_comment>
    <glob pattern="*.xltm"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
    <_comment>Office Open XML Document</_comment>
    <glob pattern="*.docx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.openxmlformats-officedocument.wordprocessingml.template">
    <_comment>Office Open XML Document Template</_comment>
    <glob pattern="*.dotx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.osa.netdeploy"/>
  <mime-type type="application/vnd.osgi.bundle"/>
  <mime-type type="application/vnd.osgi.dp">
    <glob pattern="*.dp"/>
  </mime-type>
  <mime-type type="application/vnd.otps.ct-kip+xml"/>

  <mime-type type="application/vnd.palm">
    <!-- <glob pattern="*.pdb"/> - conflicts with chemical/x-pdb -->
    <glob pattern="*.pqa"/>
    <glob pattern="*.oprc"/>
  </mime-type>

  <mime-type type="application/vnd.paos.xml"/>
  <mime-type type="application/vnd.pg.format">
    <glob pattern="*.str"/>
  </mime-type>
  <mime-type type="application/vnd.pg.osasli">
    <glob pattern="*.ei6"/>
  </mime-type>
  <mime-type type="application/vnd.piaccess.application-licence"/>
  <mime-type type="application/vnd.picsel">
    <glob pattern="*.efif"/>
  </mime-type>
  <mime-type type="application/vnd.poc.group-advertisement+xml"/>
  <mime-type type="application/vnd.pocketlearn">
    <glob pattern="*.plf"/>
  </mime-type>
  <mime-type type="application/vnd.powerbuilder6">
    <glob pattern="*.pbd"/>
  </mime-type>
  <mime-type type="application/vnd.powerbuilder6-s"/>
  <mime-type type="application/vnd.powerbuilder7"/>
  <mime-type type="application/vnd.powerbuilder7-s"/>
  <mime-type type="application/vnd.powerbuilder75"/>
  <mime-type type="application/vnd.powerbuilder75-s"/>
  <mime-type type="application/vnd.preminet"/>
  <mime-type type="application/vnd.previewsystems.box">
    <glob pattern="*.box"/>
  </mime-type>
  <mime-type type="application/vnd.proteus.magazine">
    <glob pattern="*.mgz"/>
  </mime-type>
  <mime-type type="application/vnd.publishare-delta-tree">
    <glob pattern="*.qps"/>
  </mime-type>
  <mime-type type="application/vnd.pvi.ptid1">
    <glob pattern="*.ptid"/>
  </mime-type>
  <mime-type type="application/vnd.pwg-multiplexed"/>
  <mime-type type="application/vnd.pwg-xhtml-print+xml"/>
  <mime-type type="application/vnd.qualcomm.brew-app-res"/>
  <mime-type type="application/vnd.quark.quarkxpress">
    <glob pattern="*.qxd"/>
    <glob pattern="*.qxt"/>
    <glob pattern="*.qwd"/>
    <glob pattern="*.qwt"/>
    <glob pattern="*.qxl"/>
    <glob pattern="*.qxb"/>
  </mime-type>
  <mime-type type="application/vnd.rapid"/>
  <mime-type type="application/vnd.recordare.musicxml">
    <glob pattern="*.mxl"/>
  </mime-type>
  <mime-type type="application/vnd.recordare.musicxml+xml">
    <glob pattern="*.musicxml"/>
  </mime-type>
  <mime-type type="application/vnd.renlearn.rlprint"/>
  <mime-type type="application/vnd.rim.cod">
    <glob pattern="*.cod"/>
  </mime-type>

  <mime-type type="application/vnd.rn-realmedia">
    <magic priority="50">
      <match value=".RMF" type="string" offset="0" />
    </magic>
    <glob pattern="*.rm"/>
  </mime-type>

  <mime-type type="application/vnd.route66.link66+xml">
    <glob pattern="*.link66"/>
  </mime-type>
  <mime-type type="application/vnd.ruckus.download"/>
  <mime-type type="application/vnd.s3sms"/>
  <mime-type type="application/vnd.sbm.cid"/>
  <mime-type type="application/vnd.sbm.mid2"/>
  <mime-type type="application/vnd.scribus"/>
  <mime-type type="application/vnd.sealed.3df"/>
  <mime-type type="application/vnd.sealed.csf"/>
  <mime-type type="application/vnd.sealed.doc"/>
  <mime-type type="application/vnd.sealed.eml"/>
  <mime-type type="application/vnd.sealed.mht"/>
  <mime-type type="application/vnd.sealed.net"/>
  <mime-type type="application/vnd.sealed.ppt"/>
  <mime-type type="application/vnd.sealed.tiff"/>
  <mime-type type="application/vnd.sealed.xls"/>
  <mime-type type="application/vnd.sealedmedia.softseal.html"/>
  <mime-type type="application/vnd.sealedmedia.softseal.pdf"/>
  <mime-type type="application/vnd.seemail">
    <glob pattern="*.see"/>
  </mime-type>
  <mime-type type="application/vnd.sema">
    <glob pattern="*.sema"/>
  </mime-type>
  <mime-type type="application/vnd.semd">
    <glob pattern="*.semd"/>
  </mime-type>
  <mime-type type="application/vnd.semf">
    <glob pattern="*.semf"/>
  </mime-type>
  <mime-type type="application/vnd.shana.informed.formdata">
    <glob pattern="*.ifm"/>
  </mime-type>
  <mime-type type="application/vnd.shana.informed.formtemplate">
    <glob pattern="*.itp"/>
  </mime-type>
  <mime-type type="application/vnd.shana.informed.interchange">
    <glob pattern="*.iif"/>
  </mime-type>
  <mime-type type="application/vnd.shana.informed.package">
    <glob pattern="*.ipk"/>
  </mime-type>
  <mime-type type="application/vnd.simtech-mindmapper">
    <glob pattern="*.twd"/>
    <glob pattern="*.twds"/>
  </mime-type>
  <mime-type type="application/vnd.smaf">
    <glob pattern="*.mmf"/>
  </mime-type>
  <mime-type type="application/vnd.smart.teacher">
    <glob pattern="*.teacher"/>
  </mime-type>
  <mime-type type="application/vnd.software602.filler.form+xml"/>
  <mime-type type="application/vnd.software602.filler.form-xml-zip"/>
  <mime-type type="application/vnd.solent.sdkm+xml">
    <glob pattern="*.sdkm"/>
    <glob pattern="*.sdkd"/>
  </mime-type>
  <mime-type type="application/vnd.spotfire.dxp">
    <glob pattern="*.dxp"/>
  </mime-type>
  <mime-type type="application/vnd.spotfire.sfs">
    <glob pattern="*.sfs"/>
  </mime-type>
  <mime-type type="application/vnd.sss-cod"/>
  <mime-type type="application/vnd.sss-dtf"/>
  <mime-type type="application/vnd.sss-ntf"/>

  <mime-type type="application/vnd.stardivision.calc">
    <sub-class-of type="application/x-tika-staroffice"/>
    <magic priority="50">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="StarCalc" type="string" offset="2048:2207" />
      </match>
    </magic>
    <glob pattern="*.sdc"/>
  </mime-type>
  <mime-type type="application/vnd.stardivision.draw">
    <sub-class-of type="application/x-tika-staroffice"/>
    <magic priority="50">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="StarDraw" type="string" offset="2048:2207" />
      </match>
    </magic>
    <glob pattern="*.sda"/>
  </mime-type>
  <mime-type type="application/vnd.stardivision.impress">
    <sub-class-of type="application/x-tika-staroffice"/>
    <magic priority="50">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="StarImpress" type="string" offset="2048:2207" />
      </match>
    </magic>
    <glob pattern="*.sdd"/>
  </mime-type>
  <mime-type type="application/vnd.stardivision.math">
    <glob pattern="*.smf"/>
  </mime-type>
  <mime-type type="application/vnd.stardivision.writer">
    <sub-class-of type="application/x-tika-staroffice"/>
    <magic priority="50">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="StarWriter" type="string" offset="2048:2207" />
      </match>
    </magic>
    <glob pattern="*.sdw"/>
  </mime-type>
  <mime-type type="application/x-staroffice-template">
    <sub-class-of type="application/x-tika-staroffice"/>
    <glob pattern="*.vor"/>
  </mime-type>
  <mime-type type="application/vnd.stardivision.writer-global">
    <glob pattern="*.sgl"/>
  </mime-type>

  <mime-type type="application/vnd.street-stream"/>
  <mime-type type="application/vnd.sun.xml.calc">
    <glob pattern="*.sxc"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.calc.template">
    <glob pattern="*.stc"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.draw">
    <glob pattern="*.sxd"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.draw.template">
    <glob pattern="*.std"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.impress">
    <glob pattern="*.sxi"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.impress.template">
    <glob pattern="*.sti"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.math">
    <glob pattern="*.sxm"/>
  </mime-type>

  <mime-type type="application/vnd.sun.xml.writer">
    <alias type="application/x-vnd.sun.xml.writer"/>
    <_comment>OpenOffice v1.0: Writer Document</_comment>
    <magic>
      <match type="string" offset="0" value="PK">
        <match type="string" offset="30"
          value="mimetypeapplication/vnd.sun.xml.writer"/>
      </match>
    </magic>
    <glob pattern="*.sxw"/>
  </mime-type>

  <mime-type type="application/vnd.sun.xml.writer.global">
    <glob pattern="*.sxg"/>
  </mime-type>
  <mime-type type="application/vnd.sun.xml.writer.template">
    <glob pattern="*.stw"/>
  </mime-type>
  <mime-type type="application/vnd.sun.wadl+xml"/>
  <mime-type type="application/vnd.sus-calendar">
    <glob pattern="*.sus"/>
    <glob pattern="*.susp"/>
  </mime-type>
  <mime-type type="application/vnd.svd">
    <glob pattern="*.svd"/>
  </mime-type>
  <mime-type type="application/vnd.swiftview-ics"/>

  <mime-type type="application/vnd.symbian.install">
    <magic priority="50">
      <match value="0x10000419" type="little32" offset="8" />
    </magic>
    <glob pattern="*.sis"/>
    <glob pattern="*.sisx"/>
  </mime-type>

  <mime-type type="application/vnd.syncml+xml">
    <glob pattern="*.xsm"/>
  </mime-type>
  <mime-type type="application/vnd.syncml.dm+wbxml">
    <glob pattern="*.bdm"/>
  </mime-type>
  <mime-type type="application/vnd.syncml.dm+xml">
    <glob pattern="*.xdm"/>
  </mime-type>
  <mime-type type="application/vnd.syncml.dm.notification"/>
  <mime-type type="application/vnd.syncml.ds.notification"/>
  <mime-type type="application/vnd.tao.intent-module-archive">
    <glob pattern="*.tao"/>
  </mime-type>

  <mime-type type="application/vnd.tcpdump.pcap">
    <_comment>TCPDump pcap packet capture</_comment>
    <magic priority="50">
      <match value="0xa1b2c3d4" type="big32" offset="0" />
      <match value="0xd4c3b2a1" type="big32" offset="0" />
    </magic>
    <glob pattern="*.pcap"/>
    <glob pattern="*.cap"/>
    <glob pattern="*.dmp"/>
  </mime-type>

  <mime-type type="application/vnd.tmobile-livetv">
    <glob pattern="*.tmo"/>
  </mime-type>
  <mime-type type="application/vnd.trid.tpt">
    <glob pattern="*.tpt"/>
  </mime-type>
  <mime-type type="application/vnd.triscape.mxs">
    <glob pattern="*.mxs"/>
  </mime-type>
  <mime-type type="application/vnd.trueapp">
    <glob pattern="*.tra"/>
  </mime-type>
  <mime-type type="application/vnd.truedoc"/>
  <mime-type type="application/vnd.ufdl">
    <glob pattern="*.ufd"/>
    <glob pattern="*.ufdl"/>
  </mime-type>
  <mime-type type="application/vnd.uiq.theme">
    <glob pattern="*.utz"/>
  </mime-type>
  <mime-type type="application/vnd.umajin">
    <glob pattern="*.umj"/>
  </mime-type>
  <mime-type type="application/vnd.unity">
    <glob pattern="*.unityweb"/>
  </mime-type>
  <mime-type type="application/vnd.uoml+xml">
    <glob pattern="*.uoml"/>
  </mime-type>
  <mime-type type="application/vnd.uplanet.alert"/>
  <mime-type type="application/vnd.uplanet.alert-wbxml"/>
  <mime-type type="application/vnd.uplanet.bearer-choice"/>
  <mime-type type="application/vnd.uplanet.bearer-choice-wbxml"/>
  <mime-type type="application/vnd.uplanet.cacheop"/>
  <mime-type type="application/vnd.uplanet.cacheop-wbxml"/>
  <mime-type type="application/vnd.uplanet.channel"/>
  <mime-type type="application/vnd.uplanet.channel-wbxml"/>
  <mime-type type="application/vnd.uplanet.list"/>
  <mime-type type="application/vnd.uplanet.list-wbxml"/>
  <mime-type type="application/vnd.uplanet.listcmd"/>
  <mime-type type="application/vnd.uplanet.listcmd-wbxml"/>
  <mime-type type="application/vnd.uplanet.signal"/>
  <mime-type type="application/vnd.vcx">
    <glob pattern="*.vcx"/>
  </mime-type>
  <mime-type type="application/vnd.vd-study"/>
  <mime-type type="application/vnd.vectorworks"/>
  <mime-type type="application/vnd.vidsoft.vidconference"/>

  <!-- http://www.iana.org/assignments/media-types/application/vnd.visio -->
  <mime-type type="application/vnd.visio">
    <alias type="application/vnd.ms-visio"/>
    <_comment>Microsoft Visio Diagram</_comment>
    <glob pattern="*.vsd"/>
    <glob pattern="*.vst"/>
    <glob pattern="*.vss"/>
    <glob pattern="*.vsw"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/vnd.ms-visio.drawing">
    <_comment>Office Open XML Visio Drawing (macro-free)</_comment>
    <glob pattern="*.vsdx"/>
    <sub-class-of type="application/x-tika-visio-ooxml"/>
  </mime-type>
  <mime-type type="application/vnd.ms-visio.template">
    <_comment>Office Open XML Visio Template (macro-free)</_comment>
    <glob pattern="*.vstx"/>
    <sub-class-of type="application/x-tika-visio-ooxml"/>
  </mime-type>
  <mime-type type="application/vnd.ms-visio.stencil">
    <_comment>Office Open XML Visio Stencil (macro-free)</_comment>
    <glob pattern="*.vssx"/>
    <sub-class-of type="application/x-tika-visio-ooxml"/>
  </mime-type>
  <mime-type type="application/vnd.ms-visio.drawing.macroEnabled.12">
    <_comment>Office Open XML Visio Drawing (macro-enabled)</_comment>
    <glob pattern="*.vsdm"/>
    <sub-class-of type="application/x-tika-visio-ooxml"/>
  </mime-type>
  <mime-type type="application/vnd.ms-visio.template.macroEnabled.12">
    <_comment>Office Open XML Visio Template (macro-enabled)</_comment>
    <glob pattern="*.vstm"/>
    <sub-class-of type="application/x-tika-visio-ooxml"/>
  </mime-type>
  <mime-type type="application/vnd.ms-visio.stencil.macroEnabled.12">
    <_comment>Office Open XML Visio Stencil (macro-enabled)</_comment>
    <glob pattern="*.vssm"/>
    <sub-class-of type="application/x-tika-visio-ooxml"/>
  </mime-type>

  <mime-type type="application/vnd.visionary">
    <glob pattern="*.vis"/>
  </mime-type>
  <mime-type type="application/vnd.vividence.scriptfile"/>
  <mime-type type="application/vnd.vsf">
    <glob pattern="*.vsf"/>
  </mime-type>
  <mime-type type="application/vnd.wap.sic"/>
  <mime-type type="application/vnd.wap.slc"/>

  <mime-type type="application/vnd.wap.wbxml">
    <glob pattern="*.wbxml"/>
  </mime-type>

  <mime-type type="application/vnd.wap.wmlc">
    <_comment>Compiled WML Document</_comment>
    <glob pattern="*.wmlc"/>
  </mime-type>

  <mime-type type="application/vnd.wap.wmlscriptc">
    <_comment>Compiled WML Script</_comment>
    <glob pattern="*.wmlsc"/>
  </mime-type>

  <mime-type type="application/vnd.webturbo">
    <glob pattern="*.wtb"/>
  </mime-type>
  <mime-type type="application/vnd.wfa.wsc"/>
  <mime-type type="application/vnd.wmc"/>
  <mime-type type="application/vnd.wmf.bootstrap"/>
  <mime-type type="application/vnd.wordperfect">
    <acronym>WPD</acronym>
    <_comment>WordPerfect - Corel Word Processing</_comment>
    <tika:link>http://en.wikipedia.org/wiki/WordPerfect</tika:link>
    <tika:uti>com.corel.wordperfect.doc</tika:uti>
    <magic priority="50">
      <match value="application/vnd.wordperfect;" type="string" offset="0"/>
    </magic>
    <magic priority="40">
      <match value="0xFF575043" type="big32" offset="0"/> <!-- ÿWPC -->
    </magic>
    <!-- If magic for the different versions doesn't work, fall back to glob -->
    <glob pattern="*.wpd"/>
    <glob pattern="*.wp"/>
    <glob pattern="*.wp5"/>
    <glob pattern="*.wp6"/>
    <glob pattern="*.w60"/>
    <glob pattern="*.wp61"/>
    <glob pattern="*.wpt"/>

  </mime-type>
  <!-- TODO: figure out how to identify earlier versions -->
  <mime-type type="application/vnd.wordperfect;version=5.0">
    <sub-class-of type="application/vnd.wordperfect"/>
    <magic priority="50">
      <match value="0xFF575043" type="big32" offset="0"> <!-- ÿWPC -->
        <match value="0x0000" type="big16" offset="10"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/vnd.wordperfect;version=5.1">
    <sub-class-of type="application/vnd.wordperfect"/>
    <magic priority="50">
      <match value="0xFF575043" type="big32" offset="0"> <!-- ÿWPC -->
        <match value="0x0001" type="big16" offset="10"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/vnd.wordperfect;version=6.x">
    <!--TODO: figure out how to distinguish 6.x versions -->
    <sub-class-of type="application/vnd.wordperfect"/>
    <magic priority="50">
      <match value="0xFF575043" type="big32" offset="0"> <!-- ÿWPC -->
        <match value="0x0201" type="big16" offset="10"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/vnd.wqd">
    <glob pattern="*.wqd"/>
  </mime-type>
  <mime-type type="application/vnd.wrq-hp3000-labelled"/>
  <mime-type type="application/vnd.wt.stf">
    <glob pattern="*.stf"/>
  </mime-type>
  <mime-type type="application/vnd.wv.csp+wbxml"/>
  <mime-type type="application/vnd.wv.csp+xml"/>
  <mime-type type="application/vnd.wv.ssp+xml"/>
  <mime-type type="application/vnd.xara">
    <glob pattern="*.xar"/>
    <magic priority="50">
      <match value="xar!" type="string" offset="0">
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/vnd.xfdl">
    <glob pattern="*.xfdl"/>
  </mime-type>
  <mime-type type="application/vnd.xfdl.webform"/>
  <mime-type type="application/vnd.xmi+xml"/>
  <mime-type type="application/vnd.xmpie.cpkg"/>
  <mime-type type="application/vnd.xmpie.dpkg"/>
  <mime-type type="application/vnd.xmpie.plan"/>
  <mime-type type="application/vnd.xmpie.ppkg"/>
  <mime-type type="application/vnd.xmpie.xlim"/>
  <mime-type type="application/vnd.yamaha.hv-dic">
    <glob pattern="*.hvd"/>
  </mime-type>
  <mime-type type="application/vnd.yamaha.hv-script">
    <glob pattern="*.hvs"/>
  </mime-type>
  <mime-type type="application/vnd.yamaha.hv-voice">
    <glob pattern="*.hvp"/>
  </mime-type>
  <mime-type type="application/vnd.yamaha.openscoreformat">
    <glob pattern="*.osf"/>
  </mime-type>
  <mime-type type="application/vnd.yamaha.openscoreformat.osfpvg+xml">
    <glob pattern="*.osfpvg"/>
  </mime-type>
  <mime-type type="application/vnd.yamaha.smaf-audio">
    <glob pattern="*.saf"/>
  </mime-type>
  <mime-type type="application/vnd.yamaha.smaf-phrase">
    <glob pattern="*.spf"/>
  </mime-type>
  <mime-type type="application/vnd.yellowriver-custom-menu">
    <glob pattern="*.cmp"/>
  </mime-type>
  <mime-type type="application/vnd.zul">
    <glob pattern="*.zir"/>
    <glob pattern="*.zirz"/>
  </mime-type>
  <mime-type type="application/vnd.zzazz.deck+xml">
    <glob pattern="*.zaz"/>
  </mime-type>
  <mime-type type="application/voicexml+xml">
    <glob pattern="*.vxml"/>
  </mime-type>

  <mime-type type="application/warc">
    <acronym>WARC</acronym>
    <_comment>WARC</_comment>
    <magic priority="50">
       <match value="WARC/" type="string" offset="0"/>
    </magic>
    <glob pattern="*.warc"/>
  </mime-type>

  <mime-type type="application/watcherinfo+xml"/>
  <mime-type type="application/whoispp-query"/>
  <mime-type type="application/whoispp-response"/>
  <mime-type type="application/winhlp">
    <glob pattern="*.hlp"/>
  </mime-type>
  <mime-type type="application/wita"/>
  <mime-type type="application/wordperfect5.1"/>
  <mime-type type="application/wsdl+xml">
    <glob pattern="*.wsdl"/>
  </mime-type>
  <mime-type type="application/wspolicy+xml">
    <glob pattern="*.wspolicy"/>
  </mime-type>
  
  <mime-type type="image/x-tga">
     <alias type="image/x-targa"/>
     <!-- trailer bytes: 54 52 55 45 56 49 53 49 4F 4E 2D 58 46 49 4C 45 2E 00
          trailer as string: TRUEVISION-XFILE\\x2E\\x00
          Some .tga files may be conflicting with application/x-123 recognition, 
          therefore this mime-type must be set in front of application/x-123 -->
     <_comment>Targa image data</_comment>
     <magic priority="90">
        <match value="0x01010000" type="big32" offset="1" >
           <match value=".*[\\x54\\x52\\x55\\x45\\x56\\x49\\x53\\x49\\x4F\\x4E\\x2D\\x58\\x46\\x49\\x4C\\x45\\x2E\\x00]" type="regex" offset="8" />
        </match>
        <match value="0x00020000" type="big32" offset="1" >
           <match value=".*[\\x54\\x52\\x55\\x45\\x56\\x49\\x53\\x49\\x4F\\x4E\\x2D\\x58\\x46\\x49\\x4C\\x45\\x2E\\x00]" type="regex" offset="8" />
        </match>
        <match value="0x00030000" type="big32" offset="1" >
           <match value=".*[\\x54\\x52\\x55\\x45\\x56\\x49\\x53\\x49\\x4F\\x4E\\x2D\\x58\\x46\\x49\\x4C\\x45\\x2E\\x00]" type="regex" offset="8" />
        </match>
     </magic>
     <glob pattern="*.tga"/>
     <glob pattern="*.icb"/>
     <glob pattern="*.vda"/>
     <!-- <glob pattern="*.vst"/> --> <!-- conflicting with application/vnd.visio-->
  </mime-type>

  <mime-type type="application/x-123">
    <magic priority="50">
      <match value="0x00001a00" type="big32" offset="0" />
      <match value="0x00000200" type="big32" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/x-abiword">
    <glob pattern="*.abw"/>
  </mime-type>
  <mime-type type="application/x-ace-compressed">
    <glob pattern="*.ace"/>
  </mime-type>

  <mime-type type="application/x-axcrypt">
    <_comment>AxCrypt</_comment>
    <glob pattern="*.axx" />
    <magic priority="60">
      <!-- AxCrypt block header, skip length field, then Header of type Preamble -->
      <match value="0xc0b9072e4f93f146a015792ca1d9e821" type="string" offset="0">
         <match value="2" type="big32" offset="17" />
      </match>
    </magic>
  </mime-type>

  <mime-type type="application/x-adobe-indesign">
    <acronym>INDD</acronym>
    <_comment>Adobe InDesign document</_comment>
    <glob pattern="*.indd"/>
    <magic priority="50">
      <match value="0x0606edf5d81d46e5bd31efe7fe74b71d" type="string" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/x-adobe-indesign-interchange">
    <acronym>INX</acronym>
    <_comment>Adobe InDesign Interchange format</_comment>
    <magic priority="50">
      <match value="&lt;?aid" type="string" offset="0:100"/>
    </magic>
    <glob pattern="*.inx"/>
    <sub-class-of type="application/xml"/>
  </mime-type>

  <mime-type type="application/x-apple-diskimage">
    <glob pattern="*.dmg"/>
    <!-- <glob pattern="*.img"/> too generic -->
    <!-- <glob pattern="*.smi"/> conflicts with SMIL -->
  </mime-type>

  <mime-type type="application/x-appleworks">
    <glob pattern="*.cwk"/>
  </mime-type>

  <mime-type type="application/x-archive">
    <alias type="application/x-unix-archive"/>
    <magic priority="50">
      <match value="=&lt;ar&gt;" type="string" offset="0"/>
      <match value="!&lt;arch&gt;\n" type="string" offset="0"/>
    </magic>
    <glob pattern="*.ar"/>
    <glob pattern="*.a"/>
  </mime-type>

  <mime-type type="application/x-arj">
    <alias type="application/x-arj-compressed"/>
    <magic priority="50">
      <match value="0x60ea" type="string" offset="0" />
    </magic>
    <glob pattern="*.arj"/>
  </mime-type>

  <mime-type type="application/x-authorware-bin">
    <glob pattern="*.aab"/>
    <glob pattern="*.x32"/>
    <glob pattern="*.u32"/>
    <glob pattern="*.vox"/>
  </mime-type>
  <mime-type type="application/x-authorware-map">
    <glob pattern="*.aam"/>
  </mime-type>
  <mime-type type="application/x-authorware-seg">
    <glob pattern="*.aas"/>
  </mime-type>

  <mime-type type="application/x-bcpio">
    <glob pattern="*.bcpio"/>
  </mime-type>

  <mime-type type="application/x-berkeley-db">
    <_comment>Berkeley DB</_comment>
    <alias type="application/x-dbm"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=hash">
    <_comment>Berkeley DB Hash Database</_comment>
    <magic priority="50">
      <match value="0x00061561" type="host32" offset="0"/>
      <match value="0x00061561" type="big32" offset="0"/>
      <match value="0x00061561" type="little32" offset="0"/>
      <match value="0x00061561" type="host32" offset="12"/>
      <match value="0x00061561" type="big32" offset="12"/>
      <match value="0x00061561" type="little32" offset="12"/>
    </magic>
    <sub-class-of type="application/x-berkeley-db"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=btree">
    <_comment>Berkeley DB BTree Database</_comment>
    <magic priority="50">
      <match value="0x00053162" type="host32" offset="0"/>
      <match value="0x00053162" type="big32" offset="0"/>
      <match value="0x00053162" type="little32" offset="0"/>
      <match value="0x00053162" type="host32" offset="12"/>
      <match value="0x00053162" type="big32" offset="12"/>
      <match value="0x00053162" type="little32" offset="12"/>
    </magic>
    <sub-class-of type="application/x-berkeley-db"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=queue">
    <_comment>Berkeley DB Queue Database</_comment>
    <magic priority="50">
      <match value="0x00042253" type="host32" offset="12"/>
      <match value="0x00042253" type="big32" offset="12"/>
      <match value="0x00042253" type="little32" offset="12"/>
    </magic>
    <sub-class-of type="application/x-berkeley-db"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=log">
    <_comment>Berkeley DB Log Database</_comment>
    <magic priority="50">
      <match value="0x00040988" type="host32" offset="12"/>
      <match value="0x00040988" type="little32" offset="12"/>
      <match value="0x00040988" type="big32" offset="12"/>
    </magic>
    <sub-class-of type="application/x-berkeley-db"/>
  </mime-type>

  <mime-type type="application/x-berkeley-db;format=hash;version=2">
    <_comment>Berkeley DB Version 2 Hash Database</_comment>
    <magic priority="60">
      <match value="0x00061561" type="host32" offset="12">
          <match value="0x0005" type="host32" offset="16"/>
      </match>
      <match value="0x00061561" type="big32" offset="12">
          <match value="0x0005" type="big32" offset="16"/>
      </match>
      <match value="0x00061561" type="little32" offset="12">
          <match value="0x0005" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=hash"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=hash;version=3">
    <_comment>Berkeley DB Version 3 Hash Database</_comment>
    <magic priority="60">
      <match value="0x00061561" type="host32" offset="12">
          <match value="0x0007" type="host32" offset="16"/>
      </match>
      <match value="0x00061561" type="big32" offset="12">
          <match value="0x0007" type="big32" offset="16"/>
      </match>
      <match value="0x00061561" type="little32" offset="12">
          <match value="0x0007" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=hash"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=hash;version=4">
    <_comment>Berkeley DB Version 4 Hash Database</_comment>
    <magic priority="60">
      <match value="0x00061561" type="host32" offset="12">
          <match value="0x0008" type="host32" offset="16"/>
      </match>
      <match value="0x00061561" type="big32" offset="12">
          <match value="0x0008" type="big32" offset="16"/>
      </match>
      <match value="0x00061561" type="little32" offset="12">
          <match value="0x0008" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=hash"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=hash;version=5">
    <_comment>Berkeley DB Version 5 Hash Database</_comment>
    <magic priority="60">
      <match value="0x00061561" type="host32" offset="12">
          <match value="0x0009" type="host32" offset="16"/>
      </match>
      <match value="0x00061561" type="big32" offset="12">
          <match value="0x0009" type="big32" offset="16"/>
      </match>
      <match value="0x00061561" type="little32" offset="12">
          <match value="0x0009" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=hash"/>
  </mime-type>

  <mime-type type="application/x-berkeley-db;format=btree;version=2">
    <_comment>Berkeley DB Version 2 BTree Database</_comment>
    <magic priority="60">
      <match value="0x00053162" type="host32" offset="12">
          <match value="0x0006" type="host32" offset="16"/>
      </match>
      <match value="0x00053162" type="big32" offset="12">
          <match value="0x0006" type="big32" offset="16"/>
      </match>
      <match value="0x00053162" type="little32" offset="12">
          <match value="0x0006" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=btree"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=btree;version=3">
    <_comment>Berkeley DB Version 3 BTree Database</_comment>
    <magic priority="60">
      <match value="0x00053162" type="host32" offset="12">
          <match value="0x0008" type="host32" offset="16"/>
      </match>
      <match value="0x00053162" type="big32" offset="12">
          <match value="0x0008" type="big32" offset="16"/>
      </match>
      <match value="0x00053162" type="little32" offset="12">
          <match value="0x0008" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=btree"/>
  </mime-type>
  <mime-type type="application/x-berkeley-db;format=btree;version=4">
    <_comment>Berkeley DB Version 4 and 5 BTree Database</_comment>
    <magic priority="60">
      <match value="0x00053162" type="host32" offset="12">
          <match value="0x0009" type="host32" offset="16"/>
      </match>
      <match value="0x00053162" type="big32" offset="12">
          <match value="0x0009" type="big32" offset="16"/>
      </match>
      <match value="0x00053162" type="little32" offset="12">
          <match value="0x0009" type="little32" offset="16"/>
      </match>
    </magic>
    <sub-class-of type="application/x-berkeley-db;format=btree"/>
  </mime-type>

  <mime-type type="application/x-bibtex-text-file">
    <magic priority="50">
      <match value="%\ BibTeX\ `" type="string" offset="0"/>
      <match value="%%%\ \ " type="string" offset="73"/>
      <match value="%\ BibTeX\ standard\ bibliography\ " type="string" offset="0"/>
      <match value="%%%\ \ @BibTeX-style-file{" type="string" offset="73"/>
      <match value="@article{" type="stringignorecase" offset="0"/>
      <match value="@book{" type="stringignorecase" offset="0"/>
      <match value="@inbook{" type="stringignorecase" offset="0"/>
      <match value="@incollection{" type="stringignorecase" offset="0"/>
      <match value="@inproceedings{" type="stringignorecase" offset="0"/>
      <match value="@manual{" type="stringignorecase" offset="0"/>
      <match value="@misc{" type="stringignorecase" offset="0"/>
      <match value="@preamble{" type="stringignorecase" offset="0"/>
      <match value="@phdthesis{" type="stringignorecase" offset="0"/>
      <match value="@string{" type="stringignorecase" offset="0"/>
      <match value="@techreport{" type="stringignorecase" offset="0"/>
      <match value="@unpublished{" type="stringignorecase" offset="0"/>
    </magic>
    <magic priority="30">
      <match value="%" type="string" offset="0">
         <match value="\n@article{" type="stringignorecase" offset="2:128"/>
         <match value="\n@book{" type="stringignorecase" offset="2:128"/>
         <match value="\n@inbook{" type="stringignorecase" offset="2:128"/>
         <match value="\n@incollection{" type="stringignorecase" offset="2:128"/>
         <match value="\n@inproceedings{" type="stringignorecase" offset="2:128"/>
         <match value="\n@manual{" type="stringignorecase" offset="2:128"/>
         <match value="\n@misc{" type="stringignorecase" offset="2:128"/>
         <match value="\n@preamble{" type="stringignorecase" offset="2:128"/>
         <match value="\n@phdthesis{" type="stringignorecase" offset="2:128"/>
         <match value="\n@string{" type="stringignorecase" offset="2:128"/>
         <match value="\n@techreport{" type="stringignorecase" offset="2:128"/>
         <match value="\n@unpublished{" type="stringignorecase" offset="2:128"/>
      </match>
    </magic>
    <glob pattern="*.bib"/>
    <glob pattern="*.bibtex"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/x-bittorrent">
    <magic priority="50">
      <match value="d8:announce" type="string" offset="0"/>
    </magic>
    <glob pattern="*.torrent"/>
  </mime-type>

  <mime-type type="application/x-bplist">
    <!-- The priority is 60, as .webarchive files often contain
         (X)HTML content. The bplist magic must trump the XHTML
         magics further within the file. This must also be
         independent of the internal ordering of patterns within
         MimeTypes -->
    <magic priority="60">
      <match value="bplist" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-gtar">
    <_comment>GNU tar Compressed File Archive (GNU Tape Archive)</_comment>
    <magic priority="50">
      <!-- GNU tar archive -->
      <match value="ustar  \0" type="string" offset="257" />
    </magic>
    <glob pattern="*.gtar"/>
    <sub-class-of type="application/x-tar"/>
  </mime-type>

  <mime-type type="application/x-brotli">
    <glob pattern="*.br" />
    <glob pattern="*.brotli" />
  </mime-type>

  <mime-type type="application/x-bzip">
    <magic priority="40">
      <match value="BZh" type="string" offset="0"/>
    </magic>
    <glob pattern="*.bz"/>
    <glob pattern="*.tbz"/>
  </mime-type>

  <mime-type type="application/x-bzip2">
    <sub-class-of type="application/x-bzip"/>
    <_comment>Bzip 2 UNIX Compressed File</_comment>
    <magic priority="40">
      <match value="\x42\x5a\x68\x39\x31" type="string" offset="0"/>
    </magic>
    <glob pattern="*.bz2"/>
    <glob pattern="*.tbz2"/>
    <glob pattern="*.boz"/>
  </mime-type>

  <mime-type type="application/x-cdlink">
    <_comment>Virtual CD-ROM CD Image File</_comment>
    <glob pattern="*.vcd"/>
  </mime-type>

  <mime-type type="application/x-chat">
    <glob pattern="*.chat"/>
  </mime-type>

  <mime-type type="application/x-chess-pgn">
    <glob pattern="*.pgn"/>
  </mime-type>

  <mime-type type="application/x-chrome-package">
    <acronym>CRX</acronym>
    <_comment>Chrome Extension Package</_comment>
    <tika:link>https://developer.chrome.com/extensions/crx</tika:link>
    <magic priority="50">
      <match value="Cr24" type="string" offset="0"/>
    </magic>
    <glob pattern="*.crx"/>
  </mime-type>

  <mime-type type="application/x-compress">
    <magic priority="50">
      <match value="\037\235" type="string" offset="0"/>
    </magic>
    <glob pattern="*.z"/>
  </mime-type>

  <mime-type type="application/x-corelpresentations">
    <glob pattern="*.shw"/>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/x-cpio">
    <_comment>UNIX CPIO Archive</_comment>
    <magic priority="50">
      <match value="070707" type="little16" offset="0"/>
      <match value="070707" type="big16" offset="0"/>
      <match value="070707" type="string" offset="0"/>
      <match value="070701" type="string" offset="0"/>
      <match value="070702" type="string" offset="0"/>
    </magic>
    <glob pattern="*.cpio"/>
  </mime-type>

  <mime-type type="application/x-csh">
    <glob pattern="*.csh"/>
    <glob pattern="*.tcsh"/>
  </mime-type>

  <mime-type type="application/x-debian-package">
    <alias type="application/vnd.debian.binary-package"/>
    <sub-class-of type="application/x-archive"/>
    <magic priority="60">
      <match value="!&lt;arch&gt;\ndebian-binary" type="string" offset="0"/>
      <match value="!&lt;arch&gt;\ndebian-split" type="string" offset="0"/>
    </magic>
    <glob pattern="*.deb"/>
    <glob pattern="*.udeb"/>
  </mime-type>

  <mime-type type="application/x-dex">
    <acronym>DEX</acronym>
    <_comment>Dalvik Executable Format</_comment>
    <tika:link>http://source.android.com/devices/tech/dalvik/dex-format.html</tika:link>
    <magic priority="50">
      <match value="dex\n" type="string" offset="0">
        <match value="\0" type="string" offset="7"/>
      </match>
    </magic>
    <glob pattern="*.dex"/>
  </mime-type>

  <mime-type type="application/x-director">
    <_comment>Shockwave Movie</_comment>
    <glob pattern="*.dir"/>
    <glob pattern="*.dcr"/>
    <glob pattern="*.dxr"/>
    <glob pattern="*.cst"/>
    <glob pattern="*.cct"/>
    <glob pattern="*.cxt"/>
    <glob pattern="*.w3d"/>
    <glob pattern="*.fgd"/>
    <glob pattern="*.swa"/>
  </mime-type>

  <mime-type type="application/x-doom">
    <glob pattern="*.wad"/>
  </mime-type>
  <mime-type type="application/x-dtbncx+xml">
    <glob pattern="*.ncx"/>
  </mime-type>
  <mime-type type="application/x-dtbook+xml">
    <glob pattern="*.dtb"/>
  </mime-type>
  <mime-type type="application/x-dtbresource+xml">
    <glob pattern="*.res"/>
  </mime-type>

  <mime-type type="application/x-dvi">
    <_comment>TeX Device Independent Document</_comment>
    <magic priority="50">
      <match value="\367\002" type="string" offset="0"/>
      <match value="0x02f7" type="little16" offset="0"/>
      <match value="\x1b\x20\x54\x65\x58\x20\x6f\x75\x74\x70\x75\x74\x20"
             type="string" offset="14"/>
    </magic>
    <glob pattern="*.dvi"/>
  </mime-type>

  <mime-type type="application/x-elc">
    <_comment>Emacs Lisp bytecode</_comment>
    <magic priority="50">
      <!-- Emacs 18 -->
      <match value="\012(" type="string" offset="0" />
      <!-- Emacs 19 -->
      <match value=";ELC\023\000\000\000" type="string" offset="0" />
    </magic>
    <glob pattern="*.elc"/>
  </mime-type>

  <mime-type type="application/x-elf">
    <magic priority="50">
      <match value="\177ELF" type="string" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="message/x-emlx">
    <magic priority="70">
      <match value="\nRelay-Version:" type="string" offset="2:9"/>
      <match value="\n#!\ rnews" type="string" offset="2:9"/>
      <match value="\nN#!\ rnews" type="string" offset="2:9"/>
      <match value="\nForward\ to" type="string" offset="2:9"/>
      <match value="\nPipe\ to" type="string" offset="2:9"/>
      <match value="\nReturn-Path:" type="string" offset="2:9"/>
      <match value="\nFrom:" type="string" offset="2:9"/>
      <match value="\nReceived:" type="string" offset="2:9"/>
      <match value="\nMessage-ID:" type="string" offset="2:9"/>
      <match value="\nDate:" type="string" offset="2:9"/>
    </magic>
    <glob pattern="*.emlx"/>
    <sub-class-of type="text/x-tika-text-based-message"/>
  </mime-type>

  <mime-type type="application/x-endnote-refer">
    <magic priority="80">
      <match value="%A " type="string" offset="0:50">
        <match value="\n%D " type="string" offset="0:1000">
          <match value="\n%T " type="string" offset="0:1000"/>
        </match>
      </match>
    </magic>
    <glob pattern="*.enw"/>
    <glob pattern="*.enr"/>
  </mime-type>

  <mime-type type="application/x-killustrator">
    <_comment>KIllustrator File</_comment>
    <glob pattern="*.kil"/>
  </mime-type>

  <mime-type type="application/x-object">
    <sub-class-of type="application/x-elf"/>
    <magic priority="50">
      <match value="\177ELF" type="string" offset="0">
        <match value="0x0100" type="string" offset="16"/>
        <match value="0x0001" type="string" offset="16"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-executable">
    <sub-class-of type="application/x-elf"/>
    <magic priority="50">
      <match value="\177ELF" type="string" offset="0">
        <match value="0x0200" type="string" offset="16"/>
        <match value="0x0002" type="string" offset="16"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-sharedlib">
    <sub-class-of type="application/x-elf"/>
    <magic priority="50">
      <match value="\177ELF" type="string" offset="0">
        <match value="0x0300" type="string" offset="16"/>
        <match value="0x0003" type="string" offset="16"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-coredump">
    <sub-class-of type="application/x-elf"/>
    <magic priority="50">
      <match value="\177ELF" type="string" offset="0">
        <match value="0x0400" type="string" offset="16"/>
        <match value="0x0004" type="string" offset="16"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="application/x-dosexec">
    <_comment>DOS/Windows executable (EXE)</_comment>
    <sub-class-of type="application/x-msdownload"/>
    <glob pattern="*.exe"/>
  </mime-type>

  <mime-type type="application/x-erdas-hfa">
    <magic priority="50">
      <match value="EHFA_HEADER_TAG" type="string" offset="0" />
    </magic>
    <glob pattern="*.hfa"/>
  </mime-type>

  <mime-type type="application/x-filemaker">
    <acronym>FP7</acronym>
    <_comment>FileMaker Pro 7</_comment>
    <magic priority="50">
      <match value="0xC04842414D37" type="string" offset="14" >
      <match value="0x4842414D323130314F43543939C102480750726F20372E30C0C0" type="string" offset="525" />
    </match>
    </magic>
    <glob pattern="*.fp7" />
  </mime-type>

  <mime-type type="application/x-font-bdf">
    <glob pattern="*.bdf"/>
  </mime-type>
  <mime-type type="application/x-font-dos"/>
  <mime-type type="application/x-font-framemaker"/>
  <mime-type type="application/x-font-ghostscript">
    <glob pattern="*.gsf"/>
  </mime-type>
  <mime-type type="application/x-font-libgrx"/>
  <mime-type type="application/x-font-linux-psf">
    <glob pattern="*.psf"/>
  </mime-type>

  <mime-type type="application/x-font-otf">
    <acronym>OTF</acronym>
    <_comment>OpenType Font</_comment>
    <glob pattern="*.otf"/>
  </mime-type>

  <mime-type type="application/x-font-pcf">
    <glob pattern="*.pcf"/>
  </mime-type>
  <mime-type type="application/x-font-snf">
    <glob pattern="*.snf"/>
  </mime-type>
  <mime-type type="application/x-font-speedo"/>
  <mime-type type="application/x-font-sunos-news"/>

  <mime-type type="application/x-font-ttf">
    <acronym>TTF</acronym>
    <_comment>TrueType Font</_comment>
    <glob pattern="*.ttf"/>
    <glob pattern="*.ttc"/>
    <magic priority="40">
      <match value="0x00010000" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-font-type1">
    <glob pattern="*.pfa"/>
    <glob pattern="*.pfb"/>
    <magic priority="60">
      <!-- Match for PFB, the binary format -->
      <match value="\x80\x01\xFF\xFF\x00\x00%!PS-AdobeFont" type="string"
              mask="0xFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" offset="0"/>
      <!-- Match for PFA, the text format" -->
      <match value="%!PS-AdobeFont-1.0" type="string" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/x-font-adobe-metric">
    <_comment>Adobe Font Metric</_comment>
    <glob pattern="*.afm"/>
    <glob pattern="*.acfm"/>
    <glob pattern="*.amfm"/>
    <magic priority="40">
      <match value="StartFontMetrics" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-font-printer-metric">
    <_comment>Printer Font Metric</_comment>
    <glob pattern="*.pfm"/>
    <magic priority="40">
      <match value="0x0001FFFF0000436f707972" type="string" offset="0"
              mask="0xFFFF0000FFFFFFFFFFFFFF" />
    </magic>
  </mime-type>

  <mime-type type="application/x-font-vfont"/>

  <mime-type type="application/x-foxmail">
    <_comment>Foxmail Email File</_comment>
    <magic>
      <match value="0x1010101010101011111111111153" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-futuresplash">
    <_comment>Macromedia FutureSplash File</_comment>
    <glob pattern="*.spl"/>
  </mime-type>

  <mime-type type="application/x-gnucash">
    <glob pattern="*.gnucash" />
  </mime-type>

  <mime-type type="application/x-gnumeric">
    <alias type="application/x-Gnumeric-spreadsheet"/>
    <magic priority="50">
      <match value="=&lt;gmr:Workbook" type="string" offset="39" />
    </magic>
    <glob pattern="*.gnumeric"/>
  </mime-type>

  <mime-type type="application/x-grib">
	 <acronym>GRIB</acronym>
	 <_comment>General Regularly-distributed Information in Binary form</_comment>
	 <tika:link>http://en.wikipedia.org/wiki/GRIB</tika:link>
	 <magic priority="50">
	   <match value="GRIB" type="string" offset="0"/>
	 </magic>
	 <glob pattern="*.grb"/>
	 <glob pattern="*.grb1"/>
	 <glob pattern="*.grb2"/>
  </mime-type>

  <mime-type type="application/gzip">
    <_comment>Gzip Compressed Archive</_comment>
    <alias type="application/x-gzip"/>
    <alias type="application/x-gunzip"/>
    <alias type="application/gzipped"/>
    <alias type="application/gzip-compressed"/>
    <alias type="application/x-gzip-compressed"/>
    <alias type="gzip/document"/>
    <magic priority="45">
      <match value="\037\213" type="string" offset="0" />
      <match value="\x1f\x8b" type="string" offset="0" />
    </magic>
    <glob pattern="*.gz" />
    <glob pattern="*.tgz" />
    <glob pattern="*-gz" />
  </mime-type>
  <mime-type type="application/zstd">
    <_comment>https://en.wikipedia.org/wiki/Zstandard</_comment>
    <_comment>https://tools.ietf.org/id/draft-kucherawy-dispatch-zstd-01.html</_comment>
    <magic priority="50">
      <match value="0xFD2FB528" type="little32" offset="0"/>
    </magic>
    <glob pattern="*.zstd"/>
  </mime-type>
  <mime-type type="application/x-hdf">
    <_comment>Hierarchical Data Format File</_comment>
    <magic priority="50">
      <!-- HDF4 -->
      <match value="0x0e031301" type="big32" offset="0"/>
      <!-- HDF5 -->
      <match value="\211HDF\r\n\032" type="string" offset="0"/>
    </magic>
    <glob pattern="*.hdf"/>
    <glob pattern="*.he5"/>
    <glob pattern="*.h5"/>
  </mime-type>

  <mime-type type="application/x-hwp">
    <_comment>Hangul Word Processor File</_comment>
    <magic priority="50">
      <!--
        TIKA-330: Detection pattern based on signature strings from
        the hwpfilter/source/hwpfile.cpp file in OpenOffice.org.
        This is for HWP before v5, v5 onwards use OLE2
      -->
      <match value="HWP Document File V" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-hwp-v5">
    <_comment>Hangul Word Processor File v5</_comment>
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/x-ibooks+zip">
    <sub-class-of type="application/epub+zip" />
    <acronym>iBooks</acronym>
    <_comment>Apple iBooks Author publication format</_comment>
    <magic priority="50">
      <match value="PK\003\004" type="string" offset="0">
        <match value="mimetypeapplication/x-ibooks+zip" type="string" offset="30"/>
      </match>
    </magic>
    <glob pattern="*.ibooks"/>
  </mime-type>

  <mime-type type="application/x-internet-archive">
    <acronym>ARC</acronym>
    <_comment>ARC</_comment>
    <magic priority="60">
       <match value="filedesc://" type="string" offset="0"/>
    </magic>
    <glob pattern="*.arc"/>
  </mime-type>

  <mime-type type="application/x-isatab-investigation">
    <_comment>ISA-Tab Investigation file</_comment>
    <magic priority="50">
      <match value="ONTOLOGY SOURCE REFERENCE" type="string" offset="0"/>
    </magic>
    <glob pattern="i_*.txt"/>
  </mime-type>

  <!--<mime-type type="application/x-isatab-study">-->
  <mime-type type="application/x-isatab">
    <_comment>ISA-Tab Study file</_comment>
    <magic priority="50">
      <match value="Source Name" type="string" offset="1"/>
    </magic>
    <glob pattern="s_*.txt"/>
  </mime-type>

  <mime-type type="application/x-isatab-assay">
    <_comment>ISA-Tab Assay file</_comment>
    <magic priority="50">
      <match value="Sample Name" type="string" offset="1"/>
    </magic>
    <glob pattern="a_*.txt"/>
  </mime-type>

  <mime-type type="application/x-iso9660-image">
    <acronym>ISO</acronym>
    <_comment>ISO 9660 CD-ROM filesystem data</_comment>
    <magic priority="50">
      <match value="CD001" type="string" offset="32769"/>
      <match value="CD001" type="string" offset="34817"/>
      <match value="CD001" type="string" offset="36865"/>
    </magic>
    <glob pattern="*.iso"/>
  </mime-type>

  <mime-type type="application/x-itunes-ipa">
    <sub-class-of type="application/zip"/>
    <_comment>Apple iOS IPA AppStore file</_comment>
    <glob pattern="*.ipa"/>
  </mime-type>

  <mime-type type="application/x-java-jnlp-file">
    <glob pattern="*.jnlp"/>
  </mime-type>

  <mime-type type="application/x-java-pack200">
    <glob pattern="*.pack"/>
  </mime-type>

  <mime-type type="application/x-kdelnk">
    <magic priority="50">
      <match value="[KDE\ Desktop\ Entry]" type="string" offset="0"/>
      <match value="#\ KDE\ Config\ File" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-latex">
    <_comment>LaTeX Source Document</_comment>
    <magic priority="50">
      <match value="%\ -*-latex-*-" type="string" offset="0"/>
    </magic>
    <glob pattern="*.latex"/>
    <sub-class-of type="application/x-tex"/>
  </mime-type>

  <mime-type type="application/x-lha">
    <magic priority="50">
      <match value="-lzs-" type="string" offset="2"/>
      <match value="-lh\40-" type="string" offset="2"/>
      <match value="-lhd-" type="string" offset="2"/>
      <match value="-lh2-" type="string" offset="2"/>
      <match value="-lh3-" type="string" offset="2"/>
      <match value="-lh4-" type="string" offset="2"/>
      <match value="-lh5-" type="string" offset="2"/>
      <match value="-lh6-" type="string" offset="2"/>
      <match value="-lh7-" type="string" offset="2"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-lharc">
    <magic priority="50">
      <match value="-lh0-" type="string" offset="2"/>
      <match value="-lh1-" type="string" offset="2"/>
      <match value="-lz4-" type="string" offset="2"/>
      <match value="-lz5-" type="string" offset="2"/>
    </magic>
  </mime-type>
  
  <mime-type type="application/x-lz4">
     <_comment>First match LZ4 Frame</_comment>
     <_comment>Second match Legacy Frame</_comment>
     <magic priority="60">
        <match value="0x184d2204" type="little32" offset="0" />
        <match value="0x184c2102" type="little32" offset="0" />
     </magic>
     <glob pattern="*.lz4"/>
  </mime-type>
  
  <mime-type type="application/x-lzip">
    <_comment>Lzip (LZMA) compressed archive</_comment>
    <magic priority="50">
      <match value="\x4c\x5a\x49\x50" type="string" offset="0"/>
    </magic>
    <glob pattern="*.lz"/>
  </mime-type>
  
  <mime-type type="application/x-lzma">
    <_comment>LZMA compressed archive</_comment>
    <glob pattern="*.lzma"/>
  </mime-type>  

  <mime-type type="application/x-mobipocket-ebook">
    <acronym>MOBI</acronym>
    <_comment>Mobipocket Ebook</_comment>
    <magic priority="60">
      <match value="BOOKMOBI" type="string" offset="0:60" />
    </magic>
    <glob pattern="*.prc"/>
    <glob pattern="*.mobi"/>
  </mime-type>
  <mime-type type="application/x-ms-application">
    <glob pattern="*.application"/>
  </mime-type>
  <mime-type type="application/x-ms-owner">
    <_comment>Temporary files created by MSOffice applications</_comment>
    <_comment>PRONOM fmt-473</_comment>
    <_comment>First byte and 53rd byte are the same -- the length of the name.</_comment>
    <_comment>Based on TIKA-2469, we've added a heuristic/wild guess that the first 10 chars</_comment>
    <_comment>after the length byte should be \x00 or a non-control character.</_comment>
    <magic priority="80">
      <match value="(?s)^([\\x05-\\x0F])[\\x00\\x20-\\x7E]{10}.{43}\\1\x00" type="regex" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-ms-nls">
    <_comment>Microsoft National Language Support</_comment>
    <_comment>Should take precedence over x-ms-owner</_comment>
    <magic priority="70">
      <match value="(?s)^\\x0D.{51}\\x0C\\x00\\x0D\\x00\\x0E" type="regex" offset="0"/>
      <match value="(?s)^\\x44\\x43.\\x01" type="regex" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-ms-wmd">
    <glob pattern="*.wmd"/>
  </mime-type>
  <mime-type type="application/x-ms-wmz">
    <sub-class-of type="application/gzip"/>
    <glob pattern="*.wmz"/>
  </mime-type>
  <mime-type type="application/x-ms-xbap">
    <glob pattern="*.xbap"/>
  </mime-type>
  <mime-type type="application/x-msaccess">
    <glob pattern="*.mdb"/>
    <magic priority="60">
      <match value="0x000100005374616e" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-msbinder">
    <glob pattern="*.obd"/>
  </mime-type>
  <mime-type type="application/x-mscardfile">
    <glob pattern="*.crd"/>
  </mime-type>
  <mime-type type="application/x-msclip">
    <glob pattern="*.clp"/>
  </mime-type>

  <mime-type type="application/x-msdownload">
    <glob pattern="*.dll"/>
    <glob pattern="*.com"/>
    <magic priority="50">
      <match value="MZ" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-ms-installer">
    <_comment>Microsoft Windows Installer</_comment>
    <sub-class-of type="application/x-tika-msoffice"/>
    <alias type="application/x-windows-installer"/>
    <alias type="application/x-msi"/>
    <glob pattern="*.msi"/>
    <glob pattern="*.msp"/>
    <glob pattern="*.mst"/>
  </mime-type>

  <mime-type type="application/x-msdownload;format=pe">
    <sub-class-of type="application/x-msdownload"/>
    <magic priority="55">
      <!-- Technically the header offset is stored at 0x3c, and isn't a -->
      <!-- constant, but it's almost always set to start at 0x80, 0xb0, -->
      <!-- 0xd0 or 0xf0. Will always have the MZ msdoc header too. -->
      <match value="MZ" type="string" offset="0">
         <match value="PE\000\000" type="string" offset="128"/>
         <match value="PE\000\000" type="string" offset="176"/>
         <match value="PE\000\000" type="string" offset="208"/>
         <match value="PE\000\000" type="string" offset="240"/>
      </match>
    </magic>
  </mime-type>
  <!-- the PE header should be PEx00x00 then a two byte machine type -->
  <mime-type type="application/x-msdownload;format=pe32">
    <sub-class-of type="application/x-msdownload;format=pe"/>
    <magic priority="60">
      <match value="PE\000\000" type="string" offset="128">
         <match value="0x014c" type="little16" offset="132"/>
      </match>
      <match value="PE\000\000" type="string" offset="240">
         <match value="0x014c" type="little16" offset="244"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-msdownload;format=pe64">
    <sub-class-of type="application/x-msdownload;format=pe"/>
    <magic priority="60">
      <match value="PE\000\000" type="string" offset="128">
         <match value="0x8664" type="little16" offset="132"/>
      </match>
      <match value="PE\000\000" type="string" offset="240">
         <match value="0x8664" type="little16" offset="244"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-msdownload;format=pe-itanium">
    <sub-class-of type="application/x-msdownload;format=pe"/>
    <magic priority="60">
      <match value="PE\000\000" type="string" offset="128">
         <match value="0x0200" type="little16" offset="132"/>
      </match>
      <match value="PE\000\000" type="string" offset="240">
         <match value="0x0200" type="little16" offset="244"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-msdownload;format=pe-armLE">
    <sub-class-of type="application/x-msdownload;format=pe"/>
    <magic priority="60">
      <match value="pe\000\000" type="string" offset="128">
         <match value="0x01c0" type="little16" offset="132"/>
      </match>
      <match value="pe\000\000" type="string" offset="240">
         <match value="0x01c0" type="little16" offset="244"/>
      </match>
    </magic>
  </mime-type>
  <mime-type type="application/x-msdownload;format=pe-arm7">
    <sub-class-of type="application/x-msdownload;format=pe"/>
    <magic priority="60">
      <match value="pe\000\000" type="string" offset="128">
         <match value="0x01c4" type="little16" offset="132"/>
      </match>
      <match value="pe\000\000" type="string" offset="240">
         <match value="0x01c4" type="little16" offset="244"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="application/x-msmediaview">
    <glob pattern="*.mvb"/>
    <glob pattern="*.m13"/>
    <glob pattern="*.m14"/>
  </mime-type>
  <mime-type type="application/x-msmoney">
    <glob pattern="*.mny"/>
    <magic priority="60">
      <match value="0x000100004D534953414D204461746162617365" type="string" offset="0" />
    </magic>
  </mime-type>
  <mime-type type="application/x-mspublisher">
    <glob pattern="*.pub"/>
  </mime-type>
  <mime-type type="application/x-msschedule">
    <glob pattern="*.scd"/>
  </mime-type>
  <mime-type type="application/x-msterminal">
    <glob pattern="*.trm"/>
  </mime-type>
  <mime-type type="application/x-mswrite">
    <magic priority="50">
      <match value="0x31be0000" type="big32" offset="0"/>
      <match value="0x32be0000" type="big32" offset="0"/>
    </magic>
    <glob pattern="*.wri"/>
  </mime-type>

  <mime-type type="application/x-mysql-db">
  </mime-type>
  <mime-type type="application/x-mysql-table-definition">
    <_comment>MySQL Table Definition (Format)</_comment>
    <!-- Glob is normally .frm, but that's already taken -->
    <magic priority="40">
      <match value="0xfe0107" type="string" offset="0"/>
      <match value="0xfe0108" type="string" offset="0"/>
      <match value="0xfe0109" type="string" offset="0"/>
      <match value="0xfe010a" type="string" offset="0"/>
      <match value="0xfe010b" type="string" offset="0"/>
      <match value="0xfe010c" type="string" offset="0"/>
    </magic>
    <sub-class-of type="application/x-mysql-db"/>
  </mime-type>
  <mime-type type="application/x-mysql-misam-index">
    <_comment>MySQL MISAM Index</_comment>
    <magic priority="40">
      <match value="0xfefe03" type="string" offset="0"/>
      <match value="0xfefe05" type="string" offset="0"/>
    </magic>
    <sub-class-of type="application/x-mysql-db"/>
  </mime-type>
  <mime-type type="application/x-mysql-misam-compressed-index">
    <_comment>MySQL MISAM Compressed Index</_comment>
    <glob pattern="*.MYI"/>
    <magic priority="40">
      <match value="0xfefe06" type="string" offset="0"/>
      <match value="0xfefe07" type="string" offset="0"/>
    </magic>
    <sub-class-of type="application/x-mysql-db"/>
  </mime-type>
  <mime-type type="application/x-mysql-misam-data">
    <_comment>MySQL MISAM Data</_comment>
    <glob pattern="*.MYD"/>
    <!-- MISAM Data files are header-less, so no magic -->
    <sub-class-of type="application/x-mysql-db"/>
  </mime-type>

  <mime-type type="application/x-netcdf">
    <glob pattern="*.nc"/>
    <glob pattern="*.cdf"/>
    <magic priority="50">
      <match value="CDF\001" type="string" offset="0" />
      <match value="CDF\002" type="string" offset="0" />
      <match value="0x43444601" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-pkcs12">
    <glob pattern="*.p12"/>
    <glob pattern="*.pfx"/>
  </mime-type>
  <mime-type type="application/x-pkcs7-certificates">
    <glob pattern="*.p7b"/>
    <glob pattern="*.spc"/>
  </mime-type>
  <mime-type type="application/x-pkcs7-certreqresp">
    <glob pattern="*.p7r"/>
  </mime-type>

  <mime-type type="application/x-prt">
    <glob pattern="*.prt"/>
    <magic priority="50">
      <match value="0M3C" type="string" offset="8" />
    </magic>
  </mime-type>

  <mime-type type="application/x-quattro-pro">
    <_comment>
      Quattro Pro - Corel Spreadsheet (part of WordPerfect Office suite)
    </_comment>
    <!-- qp2 and wb3 are currently detected by POIFSContainerDetector
        TODO: add detection for wb2 and wb1 -->
    <glob pattern="*.qpw"/>
    <glob pattern="*.wb1"/>
    <glob pattern="*.wb2"/>
    <glob pattern="*.wb3"/>
  </mime-type>

  <mime-type type="application/xquery">
    <_comment>XQuery source code</_comment>
    <glob pattern="*.xq"/>
    <glob pattern="*.xquery"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/x-rar-compressed">
    <_comment>RAR archive</_comment>
    <alias type="application/x-rar"/>
    <magic priority="50">
      <match value="Rar!" type="string" offset="0"/>
      <match value="\x52\x61\x72\x21\x1a" type="string" offset="0"/>
    </magic>
    <glob pattern="*.rar"/>
  </mime-type>

  <mime-type type="application/x-roxio-toast">
    <glob pattern="*.toast"/>
    <sub-class-of type="application/x-iso9660-image"/>
  </mime-type>

  <mime-type type="application/x-rpm">
    <_comment>RedHat Package Manager</_comment>
    <glob pattern="*.rpm"/>
    <magic priority="50">
      <match value="\xed\xab\xee\xdb" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-sas">
    <_comment>SAS Program</_comment>
    <glob pattern="*.sas"/>
    <sub-class-of type="text/plain"/>
  </mime-type>
  <mime-type type="application/x-sas-program-data">
    <_comment>SAS Stored Program (DATA Step)</_comment>
    <glob pattern="*.ss7"/>
    <glob pattern="*.sas7bpgm"/>
  </mime-type>
  <mime-type type="application/x-sas-audit">
    <_comment>SAS Audit</_comment>
    <glob pattern="*.st7"/>
    <glob pattern="*.sas7baud"/>
  </mime-type>
  <mime-type type="application/x-sas-data-v6">
    <_comment>SAS v6 Data Set</_comment>
    <glob pattern="*.sd2"/>
    <magic priority="40">
      <match value="SAS     6." type="string" offset="0" />
      <match value="SAS     7." type="string" offset="0" />
      <match value="SAS     8.0" type="string" offset="0" />
      <match value="SAS     9.0" type="string" offset="0" />
    </magic>
  </mime-type>
  <mime-type type="application/x-sas-data">
    <_comment>SAS Data Set</_comment>
    <glob pattern="*.sd7"/>
    <glob pattern="*.sas7bdat"/>
    <magic priority="40">
      <match value="SAS FILE" type="string" offset="84" />
    </magic>
  </mime-type>
  <mime-type type="application/x-sas-view">
    <_comment>SAS Data Set View</_comment>
    <glob pattern="*.sv7"/>
    <glob pattern="*.sas7bvew"/>
  </mime-type>
  <mime-type type="application/x-sas-data-index">
    <_comment>SAS Data Set Index</_comment>
    <glob pattern="*.si7"/>
    <glob pattern="*.sas7bndx"/>
  </mime-type>
  <mime-type type="application/x-sas-catalog">
    <_comment>SAS Catalog</_comment>
    <glob pattern="*.sc7"/>
    <glob pattern="*.sas7bcat"/>
  </mime-type>
  <mime-type type="application/x-sas-access">
    <_comment>SAS Access Descriptor</_comment>
    <glob pattern="*.sa7"/>
    <glob pattern="*.sas7bacs"/>
  </mime-type>
  <mime-type type="application/x-sas-fdb">
    <_comment>SAS FDB Consolidation Database File</_comment>
    <glob pattern="*.sf7"/>
    <glob pattern="*.sas7bfdb"/>
  </mime-type>
  <mime-type type="application/x-sas-mddb">
    <_comment>SAS MDDB Multi-Dimensional Database File</_comment>
    <glob pattern="*.sm7"/>
    <glob pattern="*.sas7bmdb"/>
  </mime-type>
  <mime-type type="application/x-sas-dmdb">
    <_comment>SAS DMDB Data Mining Database File</_comment>
    <glob pattern="*.s7m"/>
    <glob pattern="*.sas7bdmd"/>
  </mime-type>
  <mime-type type="application/x-sas-itemstor">
    <_comment>SAS Item Store (ItemStor) File</_comment>
    <glob pattern="*.sr7"/>
    <glob pattern="*.sas7bitm"/>
  </mime-type>
  <mime-type type="application/x-sas-utility">
    <_comment>SAS Utility</_comment>
    <glob pattern="*.su7"/>
    <glob pattern="*.sas7butl"/>
  </mime-type>
  <mime-type type="application/x-sas-putility">
    <_comment>SAS Permanent Utility</_comment>
    <glob pattern="*.sp7"/>
    <glob pattern="*.sas7bput"/>
  </mime-type>
  <mime-type type="application/x-sas-transport">
    <_comment>SAS Transport File</_comment>
    <glob pattern="*.stx"/>
  </mime-type>
  <mime-type type="application/x-sas-backup">
    <_comment>SAS Backup</_comment>
    <glob pattern="*.sas7bbak"/>
  </mime-type>
  <mime-type type="application/x-sas-xport">
    <_comment>SAS XPORT Transfer File</_comment>
    <glob pattern="*.xpt"/>
    <glob pattern="*.xport"/>
    <magic priority="40">
      <match value="HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/x-sc">
    <magic priority="50">
      <match value="Spreadsheet" type="string" offset="38"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-sh">
    <_comment>UNIX/LINUX Shell Script</_comment>
    <magic priority="50">
      <match value="#!/" type="string" offset="0"/>
      <match value="#!\ /" type="string" offset="0"/>
      <match value="#!\t/" type="string" offset="0"/>
      <match value="eval &quot;exec" type="string" offset="0"/>
    </magic>
    <glob pattern="*.sh"/>
    <glob pattern="*.bash"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/x-shar">
    <glob pattern="*.shar"/>
  </mime-type>

  <mime-type type="application/x-shapefile">
    <acronym>ESRI Shapefiles</acronym>
    <_comment>ESRI Shapefiles</_comment>
    <magic priority="60">
      <match value="0x0000270a" type="big32" offset="0" />
    </magic>
    <glob pattern="*.shp"/>
  </mime-type>

  <mime-type type="application/x-shockwave-flash">
    <acronym>Flash</acronym>
    <_comment>Adobe Flash</_comment>
    <magic priority="50">
      <match value="FWS" type="string" offset="0"/> <!-- F = Uncompressed -->
      <match value="CWS" type="string" offset="0"/> <!-- C = Compressed   -->
    </magic>
    <glob pattern="*.swf"/>
  </mime-type>

  <mime-type type="application/x-silverlight-app">
    <glob pattern="*.xap"/>
  </mime-type>

  <mime-type type="application/x-snappy-framed">
    <_comment>Snappy Framed</_comment>
    <magic priority="50">
      <match value="sNaPpY" type="string" offset="0"/>
    </magic>
    <glob pattern="*.sz"/>
  </mime-type>

  <mime-type type="application/x-sfdu">
    <_comment>Standard Formatted Data Units (SFDUs) data</_comment>
    <sub-class-of type="text/plain"/>
    <glob pattern="*.sfdu"/>
  </mime-type>

  <mime-type type="application/x-sqlite3">
    <magic priority="50">
      <match value="SQLite format 3\x00" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-stata-do">
    <_comment>Stata DTA Script</_comment>
    <acronym>DO</acronym>
    <tika:link>http://www.stata.com/help.cgi?do</tika:link>
    <glob pattern="*.do"/>
  </mime-type>

  <mime-type type="application/x-stata-dta">
    <_comment>Stata DTA Dataset</_comment>
    <acronym>DTA</acronym>
    <tika:link>http://www.stata.com/help.cgi?dta</tika:link>
	 <root-XML localName="stata_dta"/>
    <magic priority="50">
      <match value="&lt;stata_dta>&lt;header>&lt;release>" type="string" offset="0"/>
    </magic>
    <magic priority="40">
      <match value="&lt;stata_dta>" type="string" offset="0"/>
    </magic>
    <glob pattern="*.dta"/>
  </mime-type>

  <mime-type type="application/x-stata-dta;version=14">
    <sub-class-of type="application/x-stata-dta"/>
    <magic priority="60">
      <match value="&lt;stata_dta>&lt;header>&lt;release>118&lt;/release>" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-stata-dta;version=13">
    <sub-class-of type="application/x-stata-dta"/>
    <magic priority="60">
      <match value="&lt;stata_dta>&lt;header>&lt;release>117&lt;/release>" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-stata-dta;version=12">
    <sub-class-of type="application/x-stata-dta"/>
    <magic priority="60">
      <match value="&lt;stata_dta>&lt;header>&lt;release>115&lt;/release>" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-stata-dta;version=10">
    <sub-class-of type="application/x-stata-dta"/>
    <magic priority="60">
      <match value="&lt;stata_dta>&lt;header>&lt;release>114&lt;/release>" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="application/x-stata-dta;version=8">
    <sub-class-of type="application/x-stata-dta"/>
    <magic priority="60">
      <match value="&lt;stata_dta>&lt;header>&lt;release>113&lt;/release>" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-stuffit">
    <magic priority="50">
      <match value="StuffIt" type="string" offset="0"/>
    </magic>
    <glob pattern="*.sit"/>
  </mime-type>

  <mime-type type="application/x-stuffitx">
    <glob pattern="*.sitx"/>
  </mime-type>
  <mime-type type="application/x-sv4cpio">
    <glob pattern="*.sv4cpio"/>
  </mime-type>
  <mime-type type="application/x-sv4crc">
    <glob pattern="*.sv4crc"/>
  </mime-type>

  <mime-type type="application/x-tar">
    <magic priority="40">
      <!-- POSIX tar archive -->
      <match value="ustar\0" type="string" offset="257" />
    </magic>
    <glob pattern="*.tar"/>
  </mime-type>

  <mime-type type="application/x-tex">
    <_comment>TeX Source</_comment>
    <alias type="text/x-tex"/>
    <magic priority="50">
      <match value="\\input" type="string" offset="0"/>
      <match value="\\section" type="string" offset="0"/>
      <match value="\\setlength" type="string" offset="0"/>
      <match value="\\documentstyle" type="string" offset="0"/>
      <match value="\\chapter" type="string" offset="0"/>
      <match value="\\documentclass" type="string" offset="0"/>
      <match value="\\relax" type="string" offset="0"/>
      <match value="\\contentsline" type="string" offset="0"/>
    </magic>
    <glob pattern="*.tex"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/x-tex-tfm">
    <glob pattern="*.tfm"/>
  </mime-type>

  <mime-type type="application/x-texinfo">
    <alias type="text/x-texinfo" />
    <magic priority="50">
      <match value="\\input\ texinfo" type="string" offset="0"/>
    </magic>
    <glob pattern="*.texinfo"/>
    <glob pattern="*.texi"/>
  </mime-type>

  <!-- =================================================================== -->
  <!-- Microsoft Office binary file formats                                -->
  <!-- http://www.microsoft.com/interop/docs/OfficeBinaryFormats.mspx      -->
  <!-- =================================================================== -->
  <mime-type type="application/x-tika-msoffice">
    <magic priority="40">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-tika-msoffice-embedded">
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>
  <mime-type type="application/x-tika-msoffice-embedded;format=ole10_native">
    <sub-class-of type="application/x-tika-msoffice-embedded"/>
    <_comment>OLE10 Native Embedded Document</_comment>
  </mime-type>
  <mime-type type="application/x-tika-msoffice-embedded;format=comp_obj">
    <sub-class-of type="application/x-tika-msoffice-embedded"/>
    <_comment>CompObj OLE2 Embedded Document</_comment>
  </mime-type>

  <mime-type type="application/x-tika-msworks-spreadsheet">
    <glob pattern="*.xlr"/>
    <sub-class-of type="application/vnd.ms-excel"/>
    <!-- this has to be highter than the Excel match -->
    <magic priority="60">
      <match value="0xd0cf11e0a1b11ae1" type="string" offset="0:8">
         <match value="W\x00k\x00s\x00S\x00S\x00W\x00o\x00r\x00k\x00B\x00o\x00o\x00k" type="string" offset="1152:4096" />
      </match>
    </magic>
  </mime-type>

  <mime-type type="application/x-tika-old-excel">
    <_comment>Pre-OLE2 (Old) Microsoft Excel Worksheets</_comment>
  </mime-type>

  <!-- =================================================================== -->
  <!-- Office Open XML file formats                                        -->
  <!-- http://www.ecma-international.org/publications/standards/Ecma-376.htm -->
  <!-- =================================================================== -->
  <mime-type type="application/x-tika-ooxml">
    <sub-class-of type="application/zip"/>
    <!-- Only works if the Content Types or rels file is the first zip entry -->
    <magic priority="50">
      <match value="PK\003\004" type="string" offset="0">
        <match value="[Content_Types].xml" type="string" offset="30"/>
        <match value="_rels/.rels" type="string" offset="30"/>
      </match>
    </magic>
  </mime-type>

  <!-- Note - password protected OOXML files are actually stored in -->
  <!--  an OLE2 (application/x-tika-msoffice) container -->
  <mime-type type="application/x-tika-ooxml-protected">
    <sub-class-of type="application/x-tika-ooxml"/>
    <_comment>Password Protected OOXML File</_comment>
  </mime-type>

  <mime-type type="application/x-tika-visio-ooxml">
    <sub-class-of type="application/x-tika-ooxml"/>
    <_comment>Visio OOXML File</_comment>
  </mime-type>

  <!-- Older StarOffice formats extend up the Microsoft OLE2 format -->
  <mime-type type="application/x-tika-staroffice">
    <sub-class-of type="application/x-tika-msoffice"/>
  </mime-type>

  <mime-type type="application/x-uc2-compressed">
    <magic priority="50">
      <match value="UC2\x1a" type="string" offset="0" />
    </magic>
    <glob pattern="*.uc2"/>
  </mime-type>
  <mime-type type="application/x-ustar">
    <glob pattern="*.ustar"/>
  </mime-type>

  <mime-type type="application/x-vhd">
    <acronym>VHD</acronym>
    <_comment>Virtual PC Virtual Hard Disk</_comment>
    <tika:link>http://en.wikipedia.org/wiki/VHD_%28file_format%29</tika:link>
    <magic priority="50">
      <match value="conectix" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-vmdk">
    <acronym>VMDK</acronym>
    <_comment>Virtual Disk Format</_comment>
    <tika:link>http://en.wikipedia.org/wiki/VMDK</tika:link>
    <glob pattern="*.vmdk"/>
  </mime-type>

  <mime-type type="application/x-wais-source">
    <glob pattern="*.src"/>
  </mime-type>
  <mime-type type="application/x-webarchive">
    <sub-class-of type="application/x-bplist"/>
    <glob pattern="*.webarchive"/>
  </mime-type>
  <mime-type type="application/x-x509-ca-cert">
    <glob pattern="*.der"/>
    <glob pattern="*.crt"/>
  </mime-type>
  <mime-type type="application/x-xfig">
    <glob pattern="*.fig"/>
  </mime-type>
  <mime-type type="application/x-xpinstall">
    <glob pattern="*.xpi"/>
  </mime-type>

  <mime-type type="application/x-xmind">
    <_comment>XMind Pro</_comment>
    <sub-class-of type="application/zip"/>
    <glob pattern="*.xmind"/>
    <!-- .xmap is also used, but that extension is more common elsewhere -->
<!-- <glob pattern="*.xmap"/> -->
  </mime-type>

  <mime-type type="application/x-xz">
    <glob pattern="*.xz"/>
    <magic priority="50">
      <match value="\3757zXZ\000" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-zoo">
    <magic priority="50">
      <match value="0xfdc4a7dc" type="little32" offset="20"/>
    </magic>
    <glob pattern="*.zoo"/>
  </mime-type>

  <mime-type type="application/x400-bp"/>
  <mime-type type="application/xcap-att+xml"/>
  <mime-type type="application/xcap-caps+xml"/>
  <mime-type type="application/xcap-el+xml"/>
  <mime-type type="application/xcap-error+xml"/>
  <mime-type type="application/xcap-ns+xml"/>
  <mime-type type="application/xcon-conference-info-diff+xml"/>
  <mime-type type="application/xcon-conference-info+xml"/>
  <mime-type type="application/xenc+xml">
    <glob pattern="*.xenc"/>
  </mime-type>

  <mime-type type="application/xhtml+xml">
    <!-- The magic priority for xhtml+xml needs to be lower than that of -->
    <!--  files that contain HTML within them, e.g. mime emails -->
    <magic priority="40">
      <match value="&lt;html xmlns=" type="string" offset="0:8192"/>
    </magic>
    <root-XML namespaceURI="http://www.w3.org/1999/xhtml" localName="html"/>
    <glob pattern="*.xhtml"/>
    <glob pattern="*.xht"/>
  </mime-type>

  <mime-type type="application/xhtml-voice+xml"/>

  <mime-type type="application/xml">
    <acronym>XML</acronym>
    <_comment>Extensible Markup Language</_comment>
    <tika:link>http://en.wikipedia.org/wiki/Xml</tika:link>
    <tika:uti>public.xml</tika:uti>
    <alias type="text/xml"/>
    <alias type="application/x-xml"/>
    <magic priority="50">
      <match value="&lt;?xml" type="string" offset="0"/>
      <match value="&lt;?XML" type="string" offset="0"/>
      <!-- UTF-8 BOM -->
      <match value="0xEFBBBF3C3F786D6C" type="string" offset="0"/>
      <!-- UTF-16 LE/BE -->
      <match value="0xFFFE3C003F0078006D006C00" type="string" offset="0"/>
      <match value="0xFEFF003C003F0078006D006C" type="string" offset="0"/>
      <!-- TODO: Add matches for the other possible XML encoding schemes -->
    </magic>
    <!-- XML files can start with a comment but then must not contain processing instructions.
         This should be rare so we assign lower priority here. Priority is also lower than text/html magics
         for them to be preferred for HTML starting with comment.-->
    <magic priority="30">
      <match value="&lt;!--" type="string" offset="0"/>
    </magic>
    <glob pattern="*.xml"/>
    <glob pattern="*.xsl"/>
    <glob pattern="*.xsd"/>
    <sub-class-of type="text/plain" />
  </mime-type>

  <mime-type type="application/xml-dtd">
    <_comment>XML Document Type Definition</_comment>
    <sub-class-of type="text/plain"/>
    <alias type="text/x-dtd"/>
    <glob pattern="*.dtd"/>
  </mime-type>

  <mime-type type="application/xml-external-parsed-entity">
    <alias type="text/xml-external-parsed-entity"/>
  </mime-type>

  <mime-type type="application/xmpp+xml"/>
  <mime-type type="application/xop+xml">
    <glob pattern="*.xop"/>
  </mime-type>

 <mime-type type="application/xslfo+xml">
    <alias type="text/xsl"/>
    <acronym>XSLFO</acronym>
    <_comment>XSL Format</_comment>
    <root-XML localName="root"
              namespaceURI="http://www.w3.org/1999/XSL/Format"/>
    <glob pattern="*.xslfo"/>
    <glob pattern="*.fo"/>
  </mime-type>

  <mime-type type="application/xslt+xml">
    <alias type="text/xsl"/>
    <acronym>XSLT</acronym>
    <_comment>XSL Transformations</_comment>
    <root-XML localName="stylesheet"
              namespaceURI="http://www.w3.org/1999/XSL/Transform"/>
    <glob pattern="*.xslt"/>
  </mime-type>

  <mime-type type="application/xspf+xml">
    <acronym>XSPF</acronym>
    <_comment>XML Shareable Playlist Format</_comment>
    <root-XML localName="playlist"
              namespaceURI="http://xspf.org/ns/0/"/>
    <glob pattern="*.xspf"/>
  </mime-type>

  <mime-type type="application/xv+xml">
    <glob pattern="*.mxml"/>
    <glob pattern="*.xhvml"/>
    <glob pattern="*.xvml"/>
    <glob pattern="*.xvm"/>
  </mime-type>

  <mime-type type="application/zip">
    <_comment>Compressed Archive File</_comment>
    <tika:link>http://en.wikipedia.org/wiki/ZIP_(file_format)</tika:link>
    <tika:uti>com.pkware.zip-archive</tika:uti>
    <alias type="application/x-zip-compressed"/>
    <magic priority="50">
      <match value="PK\003\004" type="string" offset="0"/>
      <match value="PK\005\006" type="string" offset="0"/>
      <match value="PK\x07\x08" type="string" offset="0"/>
    </magic>
    <glob pattern="*.zip"/>
  </mime-type>

  <mime-type type="application/zlib">
    <alias type="application/x-deflate"/>
    <_comment>ZLIB Compressed Data Format</_comment>
    <tika:link>http://tools.ietf.org/html/rfc1950</tika:link>
    <magic priority="45">
      <!-- Low/No compression -->
      <match value="\x78\x01" type="string" offset="0" />
      <!-- Medium compression -->
      <match value="\x78\x5e" type="string" offset="0" />
      <!-- Default compression -->
      <match value="\x78\x9c" type="string" offset="0" />
      <!-- Best compression -->
      <match value="\x78\xda" type="string" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="application/x-7z-compressed">
    <acronym>7zip</acronym>
    <_comment>7-zip archive</_comment>
    <magic priority="50">
      <!-- Magic: '7', 'z', 0xBC, 0xAF, 0x27, 0x1C -->
      <match value="7z" type="string" offset="0:1" >
        <match value="0xBCAF271C" type="string" offset="2:5" />
      </match>
    </magic>
    <glob pattern="*.7z" />
  </mime-type>

  <mime-type type="audio/32kadpcm"/>
  <mime-type type="audio/3gpp"/>
  <mime-type type="audio/3gpp2"/>
  <mime-type type="audio/ac3"/>
  <mime-type type="audio/adpcm">
    <glob pattern="*.adp"/>
  </mime-type>

  <mime-type type="audio/amr">
    <glob pattern="*.amr"/>
    <magic priority="40">
      <!-- Specific match for the original AMR format -->
      <match value="#!AMR\n" type="string" offset="0"/>
      <!-- General match for AMR subtypes we don't have entries for -->
      <match value="#!AMR" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="audio/amr-wb">
    <sub-class-of type="audio/amr"/>
    <magic priority="50">
      <match value="#!AMR-WB\n" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="audio/amr-wb+">
    <sub-class-of type="audio/amr"/>
    <!-- TIKA-1156 sample needed - might be "#!AMR-WB+\n" ? -->
  </mime-type>

  <mime-type type="audio/asc"/>

  <mime-type type="audio/basic">
    <_comment>uLaw/AU Audio File</_comment>
    <magic priority="20">
      <match value=".snd" type="string" offset="0">
        <match value="1" type="big32" offset="12"/>
        <match value="2" type="big32" offset="12"/>
        <match value="3" type="big32" offset="12"/>
        <match value="4" type="big32" offset="12"/>
        <match value="5" type="big32" offset="12"/>
        <match value="6" type="big32" offset="12"/>
        <match value="7" type="big32" offset="12"/>
      </match>
      <match offset="0" type="string" value="\x2e\x73\x6e\x64\x00\x00\x00"/>
    </magic>
    <glob pattern="*.au"/>
    <glob pattern="*.snd"/>
  </mime-type>

  <mime-type type="audio/bv16"/>
  <mime-type type="audio/bv32"/>
  <mime-type type="audio/clearmode"/>
  <mime-type type="audio/cn"/>
  <mime-type type="audio/dat12"/>
  <mime-type type="audio/dls"/>
  <mime-type type="audio/dsr-es201108"/>
  <mime-type type="audio/dsr-es202050"/>
  <mime-type type="audio/dsr-es202211"/>
  <mime-type type="audio/dsr-es202212"/>
  <mime-type type="audio/dvi4"/>
  <mime-type type="audio/eac3"/>
  <mime-type type="audio/evrc"/>
  <mime-type type="audio/evrc-qcp"/>
  <mime-type type="audio/evrc0"/>
  <mime-type type="audio/evrc1"/>
  <mime-type type="audio/evrcb"/>
  <mime-type type="audio/evrcb0"/>
  <mime-type type="audio/evrcb1"/>
  <mime-type type="audio/evrcwb"/>
  <mime-type type="audio/evrcwb0"/>
  <mime-type type="audio/evrcwb1"/>
  <mime-type type="audio/example"/>
  <mime-type type="audio/g719"/>
  <mime-type type="audio/g722"/>
  <mime-type type="audio/g7221"/>
  <mime-type type="audio/g723"/>
  <mime-type type="audio/g726-16"/>
  <mime-type type="audio/g726-24"/>
  <mime-type type="audio/g726-32"/>
  <mime-type type="audio/g726-40"/>
  <mime-type type="audio/g728"/>
  <mime-type type="audio/g729"/>
  <mime-type type="audio/g7291"/>
  <mime-type type="audio/g729d"/>
  <mime-type type="audio/g729e"/>
  <mime-type type="audio/gsm"/>
  <mime-type type="audio/gsm-efr"/>
  <mime-type type="audio/ilbc"/>
  <mime-type type="audio/l16"/>
  <mime-type type="audio/l20"/>
  <mime-type type="audio/l24"/>
  <mime-type type="audio/l8"/>
  <mime-type type="audio/lpc"/>

  <mime-type type="audio/midi">
    <acronym>MIDI</acronym>
    <_comment>Musical Instrument Digital Interface</_comment>
    <magic priority ="20">
      <match type="string" value="MThd" offset="0"/>
    </magic>
    <glob pattern="*.mid"/>
    <glob pattern="*.midi"/>
    <glob pattern="*.kar"/>
    <glob pattern="*.rmi"/>
  </mime-type>

  <mime-type type="audio/mobile-xmf"/>
  <mime-type type="audio/mp4">
    <alias type="audio/x-m4a"/>
    <alias type="audio/x-mp4a"/>
    <magic priority="60">
      <match value="ftypM4A " type="string" offset="4"/>
      <match value="ftypM4B " type="string" offset="4"/>
      <match value="ftypF4A " type="string" offset="4"/>
      <match value="ftypF4B " type="string" offset="4"/>
    </magic>
    <glob pattern="*.mp4a"/>
    <glob pattern="*.m4a"/>
    <glob pattern="*.m4b"/>
    <sub-class-of type="application/quicktime" />
  </mime-type>
  <mime-type type="audio/mp4a-latm"/>
  <mime-type type="audio/mpa"/>
  <mime-type type="audio/mpa-robust"/>

  <mime-type type="audio/mpeg">
    <alias type="audio/x-mpeg"/>
    <acronym>MP3</acronym>
    <_comment>MPEG-1 Audio Layer 3</_comment>
    <magic priority="20">
      <!-- http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html -->
      <!-- Bit pattern for first two bytes: 11111111 111VVLLC    -->
      <!-- VV = MPEG Audio Version ID; 10 = V2, 11 = V1          -->
      <!-- LL = Layer description; 01 = L3, 10 = L2, 11 = L1     -->
      <!-- C = Protection bit; 0 = CRC, 1 = no CRC               -->
      <match value="0xfff2" type="string" offset="0"/> <!-- V2, L3, CRC -->
      <match value="0xfff3" type="string" offset="0"/> <!-- V2, L3      -->
      <match value="0xfff4" type="string" offset="0"/> <!-- V2, L2, CRC -->
      <match value="0xfff5" type="string" offset="0"/> <!-- V2, L2      -->
      <match value="0xfff6" type="string" offset="0"/> <!-- V2, L1, CRC -->
      <match value="0xfff7" type="string" offset="0"/> <!-- V2, L1      -->
      <match value="0xfffa" type="string" offset="0"/> <!-- V1, L3, CRC -->
      <match value="0xfffb" type="string" offset="0"/> <!-- V1, L3      -->
      <match value="0xfffc" type="string" offset="0"/> <!-- V1, L2, CRC -->
      <match value="0xfffd" type="string" offset="0"/> <!-- V1, L2      -->
      <!-- TIKA-417: This is the UTF-16 LE byte order mark! -->
      <!-- match value="0xfffe" type="string" offset="0"/ --> <!-- V1, L1, CRC -->
      <match value="0xffff" type="string" offset="0"/> <!-- V1, L1      -->
      <match value="ID3" type="string" offset="0"/>
    </magic>
    <glob pattern="*.mpga"/>
    <glob pattern="*.mp2"/>
    <glob pattern="*.mp2a"/>
    <glob pattern="*.mp3"/>
    <glob pattern="*.m2a"/>
    <glob pattern="*.m3a"/>
  </mime-type>

  <mime-type type="audio/mpeg4-generic"/>

  <mime-type type="audio/ogg">
    <_comment>Ogg Vorbis Audio</_comment>
    <glob pattern="*.oga"/>
    <sub-class-of type="application/ogg"/>
  </mime-type>

  <mime-type type="audio/vorbis">
    <_comment>Ogg Vorbis Codec Compressed WAV File</_comment>
    <alias type="application/x-ogg"/>
    <magic priority="60">
      <!-- For a single stream file -->
      <match value="OggS\000.......................\001vorbis" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFFFF"
             offset="0"/>
    </magic>
    <glob pattern="*.ogg"/>
    <sub-class-of type="audio/ogg"/>
  </mime-type>

  <mime-type type="audio/x-oggflac">
    <_comment>Ogg Packaged Free Lossless Audio Codec</_comment>
    <alias type="audio/x-ogg-flac"/>
    <magic priority="60">
      <!-- For a single stream file -->
      <match value="OggS\000.......................FLAC" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="audio/ogg"/>
  </mime-type>

  <mime-type type="audio/x-oggpcm">
    <_comment>Ogg Packaged Unompressed WAV File</_comment>
    <alias type="audio/x-ogg-pcm"/>
    <magic priority="60">
      <!-- For a single stream file -->
      <match value="OggS\000.......................PCM     " type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="audio/ogg"/>
  </mime-type>

  <mime-type type="audio/opus">
    <_comment>Ogg Opus Codec Compressed WAV File</_comment>
    <magic priority="60">
      <!-- For a single stream file -->
      <match value="OggS\000.......................OpusHead" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFF"
             offset="0"/>
    </magic>
    <glob pattern="*.opus"/>
    <sub-class-of type="audio/ogg"/>
  </mime-type>

  <mime-type type="audio/speex">
    <_comment>Ogg Speex Codec Compressed WAV File</_comment>
    <alias type="application/x-speex"/>
    <magic priority="60">
      <!-- For a single stream file -->
      <match value="OggS\000.......................Speex   " type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFF"
             offset="0"/>
    </magic>
    <glob pattern="*.spx"/>
    <sub-class-of type="audio/ogg"/>
  </mime-type>

  <mime-type type="audio/parityfec"/>
  <mime-type type="audio/pcma"/>
  <mime-type type="audio/pcma-wb"/>
  <mime-type type="audio/pcmu-wb"/>
  <mime-type type="audio/pcmu"/>

  <mime-type type="audio/prs.sid">
    <magic priority="50">
      <match value="PSID" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="audio/qcelp"/>
  <mime-type type="audio/red"/>
  <mime-type type="audio/rtp-enc-aescm128"/>
  <mime-type type="audio/rtp-midi"/>
  <mime-type type="audio/rtx"/>
  <mime-type type="audio/smv"/>
  <mime-type type="audio/smv0"/>
  <mime-type type="audio/smv-qcp"/>
  <mime-type type="audio/sp-midi"/>
  <mime-type type="audio/t140c"/>
  <mime-type type="audio/t38"/>
  <mime-type type="audio/telephone-event"/>
  <mime-type type="audio/tone"/>
  <mime-type type="audio/ulpfec"/>
  <mime-type type="audio/vdvi"/>
  <mime-type type="audio/vmr-wb"/>
  <mime-type type="audio/vnd.3gpp.iufp"/>
  <mime-type type="audio/vnd.4sb"/>
  <mime-type type="audio/vnd.audiokoz"/>
  <mime-type type="audio/vnd.adobe.soundbooth">
    <glob pattern="*.asnd"/>
  </mime-type>
  <mime-type type="audio/vnd.celp"/>
  <mime-type type="audio/vnd.cisco.nse"/>
  <mime-type type="audio/vnd.cmles.radio-events"/>
  <mime-type type="audio/vnd.cns.anp1"/>
  <mime-type type="audio/vnd.cns.inf1"/>
  <mime-type type="audio/vnd.digital-winds">
    <glob pattern="*.eol"/>
  </mime-type>
  <mime-type type="audio/vnd.dlna.adts"/>
  <mime-type type="audio/vnd.dolby.heaac.1"/>
  <mime-type type="audio/vnd.dolby.heaac.2"/>
  <mime-type type="audio/vnd.dolby.mlp"/>
  <mime-type type="audio/vnd.dolby.mps"/>
  <mime-type type="audio/vnd.dolby.pl2"/>
  <mime-type type="audio/vnd.dolby.pl2x"/>
  <mime-type type="audio/vnd.dolby.pl2z"/>
  <mime-type type="audio/vnd.dts">
    <glob pattern="*.dts"/>
  </mime-type>
  <mime-type type="audio/vnd.dts.hd">
    <glob pattern="*.dtshd"/>
  </mime-type>
  <mime-type type="audio/vnd.everad.plj"/>
  <mime-type type="audio/vnd.hns.audio"/>
  <mime-type type="audio/vnd.lucent.voice">
    <glob pattern="*.lvp"/>
  </mime-type>
  <mime-type type="audio/vnd.ms-playready.media.pya">
    <glob pattern="*.pya"/>
  </mime-type>
  <mime-type type="audio/vnd.nokia.mobile-xmf"/>
  <mime-type type="audio/vnd.nortel.vbk"/>
  <mime-type type="audio/vnd.nuera.ecelp4800">
    <glob pattern="*.ecelp4800"/>
  </mime-type>
  <mime-type type="audio/vnd.nuera.ecelp7470">
    <glob pattern="*.ecelp7470"/>
  </mime-type>
  <mime-type type="audio/vnd.nuera.ecelp9600">
    <glob pattern="*.ecelp9600"/>
  </mime-type>
  <mime-type type="audio/vnd.octel.sbc"/>
  <mime-type type="audio/vnd.qcelp"/>
  <mime-type type="audio/vnd.rhetorex.32kadpcm"/>
  <mime-type type="audio/vnd.sealedmedia.softseal.mpeg"/>
  <mime-type type="audio/vnd.vmx.cvsd"/>
  <mime-type type="audio/vorbis-config"/>
  <mime-type type="audio/x-aac">
    <glob pattern="*.aac"/>
  </mime-type>

  <mime-type type="audio/x-adpcm">
    <magic priority="20">
      <match value=".snd" type="string" offset="0">
        <match value="23" type="big32" offset="12"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="audio/x-aiff">
    <alias type="audio/aiff"/>
    <acronym>AIFF</acronym>
    <_comment>Audio Interchange File Format</_comment>
    <magic priority="20">
      <match value="FORM....AIFF" type="string" offset="0"
             mask="0xFFFFFFFF00000000FFFFFFFF"/>
      <match value="FORM....AIFC" type="string" offset="0"
             mask="0xFFFFFFFF00000000FFFFFFFF"/>
      <!-- Amiga IFF sound sample, somewhat like the more modern AIFF -->
      <match value="FORM....8SVX" type="string" offset="0"
             mask="0xFFFFFFFF00000000FFFFFFFF"/>
      <match offset="0" type="string" value="\x46\x4f\x52\x4d\x00"/>
    </magic>
    <glob pattern="*.aif"/>
    <glob pattern="*.aiff"/>
    <glob pattern="*.aifc"/>
  </mime-type>
  
  <mime-type type="audio/x-caf">
     <_comment>Core Audio Format</_comment>
     <_comment>com.apple.coreaudio-format</_comment>
     <magic priority="60">
        <match value="caff" type="string" offset="0" />
     </magic>
     <glob pattern="*.caf"/>
  </mime-type>

  <mime-type type="audio/x-dec-basic">
    <magic priority="20">
      <match value="0x0064732E" type="big32" offset="0">
        <match value="1" type="big32" offset="12"/>
        <match value="2" type="big32" offset="12"/>
        <match value="3" type="big32" offset="12"/>
        <match value="4" type="big32" offset="12"/>
        <match value="5" type="big32" offset="12"/>
        <match value="6" type="big32" offset="12"/>
        <match value="7" type="big32" offset="12"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="audio/x-dec-adpcm">
    <magic priority="20">
      <match value="0x0064732E" type="big32" offset="0">
        <match value="23" type="big32" offset="12"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="audio/x-flac">
    <acronym>FLAC</acronym>
    <_comment>Free Lossless Audio Codec</_comment>
    <magic priority="50">
      <match value="fLaC" type="string" offset="0"/>
    </magic>
    <glob pattern="*.flac"/>
  </mime-type>

  <mime-type type="audio/x-mod">
    <acronym>MOD</acronym>
    <magic priority="50">
      <match value="Extended\ Module:" type="string" offset="0"/>
      <match value="BMOD2STM" type="string" offset="21"/>
      <match value="M.K." type="string" offset="1080"/>
      <match value="M!K!" type="string" offset="1080"/>
      <match value="FLT4" type="string" offset="1080"/>
      <match value="FLT8" type="string" offset="1080"/>
      <match value="4CHN" type="string" offset="1080"/>
      <match value="6CHN" type="string" offset="1080"/>
      <match value="8CHN" type="string" offset="1080"/>
      <match value="CD81" type="string" offset="1080"/>
      <match value="OKTA" type="string" offset="1080"/>
      <match value="16CN" type="string" offset="1080"/>
      <match value="32CN" type="string" offset="1080"/>
      <match value="IMPM" type="string" offset="0"/>
    </magic>
    <glob pattern="*.mod"/>
  </mime-type>

  <mime-type type="audio/x-mpegurl">
    <_comment>MP3 Playlist File</_comment>
    <magic priority="50">
     <match offset="0" type="string" value="\x23\x45\x58\x54\x4d\x33\x55\x0d\x0a"/>
    </magic>
    <glob pattern="*.m3u"/>
  </mime-type>

  <mime-type type="audio/x-ms-wax">
    <glob pattern="*.wax"/>
  </mime-type>
  <mime-type type="audio/x-ms-wma">
    <sub-class-of type="video/x-ms-asf" />
    <glob pattern="*.wma"/>
    <magic priority="50">
       <match value="Windows Media Audio" type="unicodeLE" offset="0:8192" />
    </magic>
  </mime-type>

  <mime-type type="audio/x-pn-realaudio">
    <_comment>Real Audio</_comment>
    <alias type="audio/x-realaudio" />
    <magic priority="50">
      <match value="0x2e7261fd" type="big32" offset="0"/>
    </magic>
    <glob pattern="*.ram"/>
    <glob pattern="*.ra"/>
  </mime-type>

  <mime-type type="audio/x-pn-realaudio-plugin">
    <_comment>RealMedia Player Plug-in</_comment>
    <glob pattern="*.rmp"/>
    <!-- <glob pattern="*.rpm"/> - conflicts with application/x-rpm -->
  </mime-type>

  <mime-type type="audio/vnd.wave">
    <alias type="audio/x-wav"/>
    <alias type="audio/wave"/>
    <alias type="audio/wav"/>
    <acronym>WAV</acronym>
    <magic priority="20">
      <match value="RIFF....WAVE" type="string" offset="0"
             mask="0xFFFFFFFF00000000FFFFFFFF"/>
    </magic>
    <glob pattern="*.wav"/>
  </mime-type>

  <mime-type type="chemical/x-cdx">
    <magic priority="50">
      <match value="VjCD0100" type="string" offset="0"/>
    </magic>
    <glob pattern="*.cdx"/>
  </mime-type>
  <mime-type type="chemical/x-cif">
    <glob pattern="*.cif"/>
  </mime-type>
  <mime-type type="chemical/x-cmdf">
    <glob pattern="*.cmdf"/>
  </mime-type>
  <mime-type type="chemical/x-cml">
    <glob pattern="*.cml"/>
  </mime-type>
  <mime-type type="chemical/x-csml">
    <glob pattern="*.csml"/>
  </mime-type>

  <mime-type type="chemical/x-pdb">
    <_comment>Brookhaven Protein Databank File</_comment>
    <glob pattern="*.pdb"/>
  </mime-type>

  <mime-type type="chemical/x-xyz">
    <glob pattern="*.xyz"/>
  </mime-type>

  <mime-type type="image/aces">
    <_comment>ACES Image Container File</_comment>
    <magic priority="50">
      <match value="0x762F310102000000" type="string" offset="0"/>
      <match value="0x762F310102040000" type="string" offset="0"/>
    </magic>
    <glob pattern="*.exr"/>
  </mime-type> 

  <mime-type type="image/bmp">
    <alias type="image/x-bmp"/>
    <alias type="image/x-ms-bmp"/>
    <acronym>BMP</acronym>
    <_comment>Windows bitmap</_comment>
    <tika:link>http://en.wikipedia.org/wiki/BMP_file_format</tika:link>
    <tika:uti>com.microsoft.bmp</tika:uti>
    <magic priority="50">
      <match value="BM" type="string" offset="0">
        <match value="0x0100" type="string" offset="26">
      	  <match value="0x0000" type="string" offset="28"/>
      	  <match value="0x0100" type="string" offset="28"/>
      	  <match value="0x0400" type="string" offset="28"/>
      	  <match value="0x0800" type="string" offset="28"/>
      	  <match value="0x1000" type="string" offset="28"/>
      	  <match value="0x1800" type="string" offset="28"/>
      	  <match value="0x2000" type="string" offset="28"/>
        </match>
      </match>
    </magic>
    <glob pattern="*.bmp"/>
    <glob pattern="*.dib"/>
  </mime-type>

  <mime-type type="image/x-bpg">
    <acronym>BPG</acronym>
    <_comment>Better Portable Graphics</_comment>
    <magic priority="50">
      <match value="0x425047FB" type="string" offset="0">
      </match>
    </magic>
    <glob pattern="*.bpg"/>
  </mime-type>

  <mime-type type="image/cgm">
    <acronym>CGM</acronym>
    <_comment>Computer Graphics Metafile</_comment>
    <magic priority="50">
      <match value="BEGMF" type="string" offset="0"/>
      <match value="0x0020" mask="0xffe0" type="string" offset="0">
        <match value="0x10220001" type="string" offset="2:64"/>
        <match value="0x10220002" type="string" offset="2:64"/>
        <match value="0x10220003" type="string" offset="2:64"/>
        <match value="0x10220004" type="string" offset="2:64"/>
      </match>
    </magic>
    <glob pattern="*.cgm"/>
  </mime-type>

  <mime-type type="image/x-dpx">
    <acronym>DPX</acronym>
    <_comment>Digital Picture Exchange from SMPTE</_comment>
    <magic priority="50">
      <match value="SDPX" type="string" offset="0" />
      <match value="XPDS" type="string" offset="0" />
    </magic>
    <glob pattern="*.dpx"/>
  </mime-type>

  <mime-type type="image/emf">
    <alias type="image/x-emf"/>
    <alias type="application/x-emf"/>
    <acronym>EMF</acronym>
    <_comment>Enhanced Metafile</_comment>
    <tika:link>https://msdn.microsoft.com/en-us/library/cc230711.aspx</tika:link>
    <glob pattern="*.emf"/>
    <magic priority="50">
      <match value="0x01000000" type="string" offset="0">
        <match value="0x464D4520" type="little32" offset="40"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="image/x-emf-compressed">
    <sub-class-of type="application/gzip"/>
    <alias type="application/x-ms-emz"/>
    <acronym>EMZ</acronym>
    <_comment>Compressed Enhanced Metafile</_comment>
    <glob pattern="*.emz" />
  </mime-type>

  <mime-type type="image/example"/>

  <mime-type type="image/fits">
    <sub-class-of type="application/fits"/>
    <magic priority="50">
      <match value="0x53494D504C4520203D2020" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="image/g3fax">
    <glob pattern="*.g3"/>
  </mime-type>

  <mime-type type="image/gif">
    <acronym>GIF</acronym>
    <_comment>Graphics Interchange Format</_comment>
    <tika:link>http://en.wikipedia.org/wiki/Gif</tika:link>
    <tika:uti>com.compuserve.gif</tika:uti>
    <magic priority="50">
      <match value="GIF87a" type="string" offset="0"/>
      <match value="GIF89a" type="string" offset="0"/>
    </magic>
    <glob pattern="*.gif"/>
  </mime-type>

  <mime-type type="image/icns">
    <_comment>Apple Icon Image Format</_comment>
    <magic priority="50">
      <match value="icns" type="string" offset="0"/>
    </magic>
    <glob pattern="*.icns"/>
  </mime-type>

  <mime-type type="image/ief">
    <glob pattern="*.ief"/>
  </mime-type>

  <mime-type type="image/jp2">
    <sub-class-of type="image/x-jp2-container" />
    <acronym>JP2</acronym>
    <_comment>JPEG 2000 Part 1 (JP2)</_comment>
    <magic priority="50">
      <match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
        <match value="0x6a703220" type="string" offset="20"/>
      </match>
    </magic>
    <glob pattern="*.jp2"/>
  </mime-type>

  <mime-type type="image/jpeg">
    <acronym>JPEG</acronym>
    <_comment>Joint Photographic Experts Group</_comment>
    <tika:link>http://en.wikipedia.org/wiki/Jpeg</tika:link>
    <tika:uti>public.jpeg</tika:uti>
    <magic priority="50">
      <!-- FFD8 is the SOI (Start Of Image) marker.              -->
      <!-- It is followed by another marker that starts with FF. -->
      <match value="0xffd8ff" type="string" offset="0"/>
    </magic>
    <glob pattern="*.jpg"/>
    <glob pattern="*.jpeg"/>
    <glob pattern="*.jpe"/>
    <glob pattern="*.jif"/>
    <glob pattern="*.jfif"/>
    <glob pattern="*.jfi"/>
  </mime-type>

  <mime-type type="image/jpm">
    <alias type="video/jpm"/>
    <sub-class-of type="image/x-jp2-container" />
    <acronym>JP2</acronym>
    <_comment>JPEG 2000 Part 6 (JPM)</_comment>
    <magic priority="50">
      <match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
        <match value="0x6a706d20" type="string" offset="20"/>
      </match>
    </magic>
    <glob pattern="*.jpm"/>
    <glob pattern="*.jpgm"/>
  </mime-type>

  <mime-type type="image/jpx">
    <sub-class-of type="image/x-jp2-container" />
    <acronym>JP2</acronym>
    <_comment>JPEG 2000 Part 2 (JPX)</_comment>
    <magic priority="50">
      <match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
        <match value="0x6a707820" type="string" offset="20"/>
      </match>
    </magic>
    <glob pattern="*.jpf"/>
  </mime-type>

  <mime-type type="image/naplps"/>

  <mime-type type="image/nitf">
    <alias type="image/ntf"/>
    <magic priority="50">
      <match value="NITF01.10" type="string" offset="0"/>
      <match value="NITF02.000" type="string" offset="0"/>
      <match value="NITF02.100" type="string" offset="0"/>
    </magic>
    <glob pattern="*.ntf"/>
    <glob pattern="*.nitf"/>
  </mime-type>

  <mime-type type="image/png">
    <acronym>PNG</acronym>
    <_comment>Portable Network Graphics</_comment>
    <magic priority="50">
      <match value="\x89PNG\x0d\x0a\x1a\x0a" type="string" offset="0"/>
    </magic>
    <glob pattern="*.png"/>
  </mime-type>

  <mime-type type="image/prs.btif">
    <glob pattern="*.btif"/>
  </mime-type>
  <mime-type type="image/prs.pti"/>

  <mime-type type="image/svg+xml">
    <sub-class-of type="application/xml"/>
    <acronym>SVG</acronym>
    <_comment>Scalable Vector Graphics</_comment>
    <root-XML localName="svg" namespaceURI="http://www.w3.org/2000/svg"/>
    <glob pattern="*.svg"/>
    <glob pattern="*.svgz"/>
  </mime-type>

  <mime-type type="image/t38"/>

  <mime-type type="image/tiff">
    <acronym>TIFF</acronym>
    <_comment>Tagged Image File Format</_comment>
    <magic priority="50">
      <!-- MM.* = Big endian (M=Motorola) and 0x002a in big endian    -->
      <match value="MM\x00\x2a" type="string" offset="0"/>
      <!-- II*. = Little endian (I=Intel) and 0x002a in little endian -->
      <match value="II\x2a\x00" type="string" offset="0"/>
      <!-- MM.+ = Big endian (M=Motorola) and 0x002a in big endian-->
      <match value="MM\x00\x2b" type="string" offset="0"/>
    </magic>
    <glob pattern="*.tiff"/>
    <glob pattern="*.tif"/>
  </mime-type>

  <mime-type type="image/tiff-fx"/>

  <mime-type type="image/vnd.adobe.photoshop">
    <acronym>PSD</acronym>
    <_comment>Photoshop Image</_comment>
    <alias type="image/x-psd"/>
    <alias type="application/photoshop"/>
    <magic priority="50">
      <!-- Version of 0x0001 is PSD -->
      <match value="8BPS\x00\x01" type="string" offset="0"/>
      <!-- Version of 0x0002 is PSB -->
      <match value="8BPS\x00\x02" type="string" offset="0"/>
    </magic>
    <glob pattern="*.psd"/>
  </mime-type>

  <mime-type type="image/vnd.adobe.premiere">
    <glob pattern="*.ppj"/>
    <root-XML localName="PremiereData"/>
    <sub-class-of type="application/xml"/>
  </mime-type>

  <mime-type type="image/vnd.cns.inf2"/>
  <mime-type type="image/vnd.djvu">
    <glob pattern="*.djvu"/>
    <glob pattern="*.djv"/>
    <magic priority="50">
      <match value="AT&amp;TFORM" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="image/vnd.dwg">
    <acronym>DWG</acronym>
    <_comment>AutoCad Drawing</_comment>
    <tika:link>http://en.wikipedia.org/wiki/.dwg</tika:link>
    <alias type="image/x-dwg"/>
    <alias type="application/acad"/>
    <alias type="application/x-acad"/>
    <alias type="application/autocad_dwg"/>
    <alias type="application/dwg"/>
    <alias type="application/x-dwg"/>
    <alias type="application/x-autocad"/>
    <alias type="drawing/dwg"/>
    <glob pattern="*.dwg"/>
    <magic priority="50">
      <match value="MC0.0" type="string" offset="0"/>
      <match value="AC1.2" type="string" offset="0"/>
      <match value="AC1.40" type="string" offset="0"/>
      <match value="AC1.50" type="string" offset="0"/>
      <match value="AC2.10" type="string" offset="0"/>
      <match value="AC2.21" type="string" offset="0"/>
      <match value="AC2.22" type="string" offset="0"/>
      <!-- "AC" followed by four numbers -->
      <match value="AC0000" type="string" offset="0"
             mask="0xFFFFF0F0F0F0"/>
    </magic>
  </mime-type>

  <mime-type type="image/vnd.dxb">
    <acronym>DXB</acronym>
    <_comment>AutoCAD DXF simplified Binary</_comment>
    <tika:link>http://en.wikipedia.org/wiki/AutoCAD_DXF</tika:link>
    <magic priority="50">
      <match value="AutoCAD DXB 1.0\r\n0x1A00" type="string" offset="0"/>
    </magic>
    <glob pattern="*.dxb"/>
  </mime-type>

  <mime-type type="image/vnd.dxf">
    <acronym>DXF</acronym>
    <_comment>AutoCAD DXF</_comment>
    <tika:link>http://en.wikipedia.org/wiki/AutoCAD_DXF</tika:link>
    <!-- DXF can be the text or binary representation -->
    <glob pattern="*.dxf"/>
  </mime-type>
  <mime-type type="image/vnd.dxf;format=binary">
    <sub-class-of type="image/vnd.dxf"/>
    <_comment>AutoCAD DXF in Binary form</_comment>
    <magic priority="50">
      <match value="AutoCAD Binary DXF\r\n0x1A00" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="image/vnd.dxf;format=ascii">
    <sub-class-of type="image/vnd.dxf"/>
    <_comment>AutoCAD DXF in ASCII Text form</_comment>
    <magic priority="50">
      <!-- Variable number of spaces before the code groups -->
      <match value="0\r\nSECTION\r\n" offset="0:3">
        <match value="2\r\nHEADER\r\n" offset="12:18"/>
      </match>
    </magic>
  </mime-type>

  <mime-type type="image/vnd.fastbidsheet">
    <glob pattern="*.fbs"/>
  </mime-type>
  <mime-type type="image/vnd.fpx">
    <glob pattern="*.fpx"/>
  </mime-type>
  <mime-type type="image/vnd.fst">
    <glob pattern="*.fst"/>
  </mime-type>
  <mime-type type="image/vnd.fujixerox.edmics-mmr">
    <glob pattern="*.mmr"/>
  </mime-type>
  <mime-type type="image/vnd.fujixerox.edmics-rlc">
    <glob pattern="*.rlc"/>
  </mime-type>
  <mime-type type="image/vnd.globalgraphics.pgb"/>

  <mime-type type="image/vnd.microsoft.icon">
    <acronym>ICO</acronym>
    <tika:link>http://en.wikipedia.org/wiki/.ico</tika:link>
    <tika:uti>com.microsoft.ico</tika:uti>
    <alias type="image/x-icon" />
    <magic priority="50">
      <match value="\102\101\050\000\000\000\056\000\000\000\000\000\000\000"
             type="string" offset="0"/>
      <match value="\000\000\001\000" type="string" offset="0"/>
    </magic>
    <glob pattern="*.ico"/>
  </mime-type>

  <mime-type type="image/vnd.mix"/>
  <mime-type type="image/vnd.ms-modi">
       <glob pattern="*.mdi"/>
       <_comment>Microsoft Document Imaging</_comment>
       <magic priority="50">
         <match value="0x45502A00" type="string" offset="0"/>
       </magic>
  </mime-type>

  <mime-type type="image/vnd.net-fpx">
    <glob pattern="*.npx"/>
  </mime-type>
  <mime-type type="image/vnd.radiance"/>
  <mime-type type="image/vnd.sealed.png"/>
  <mime-type type="image/vnd.sealedmedia.softseal.gif"/>
  <mime-type type="image/vnd.sealedmedia.softseal.jpg"/>
  <mime-type type="image/vnd.svf"/>

  <mime-type type="image/vnd.wap.wbmp">
    <_comment>Wireless Bitmap File Format</_comment>
    <glob pattern="*.wbmp"/>
  </mime-type>

  <mime-type type="image/vnd.zbrush.dcx">
    <acronym>DCX</acronym>
    <_comment>ZSoft Multi-Page Paintbrush</_comment>
    <alias type="image/x-dcx"/>
    <magic priority="50">
      <match value="0xB168DE3A" type="string" offset="0"/>
    </magic>
    <glob pattern="*.dcx"/>
  </mime-type>

  <mime-type type="image/vnd.zbrush.pcx">
    <acronym>PCX</acronym>
    <_comment>ZSoft Paintbrush PiCture eXchange</_comment>
    <alias type="image/x-pcx"/>
    <alias type="image/x-pc-paintbrush"/>
    <magic priority="40">
      <match value="0x0A" type="string" offset="0">
        <match value="0x00" type="string" offset="1"/>
        <match value="0x02" type="string" offset="1"/>
        <match value="0x03" type="string" offset="1"/>
        <match value="0x04" type="string" offset="1"/>
        <match value="0x05" type="string" offset="1"/>
      </match>
    </magic>
    <glob pattern="*.pcx"/>
  </mime-type>

  <mime-type type="image/webp">
    <acronym>WEBP</acronym>
    <tika:link>http://en.wikipedia.org/wiki/WebP</tika:link>
    <!-- container spec https://developers.google.com/speed/webp/docs/riff_container -->
    <magic priority="50">
      <match value="RIFF....WEBP" type="string" offset="0"
             mask="0xFFFFFFFF00000000FFFFFFFF"/>
    </magic>
    <glob pattern="*.webp"/>
  </mime-type>

  <mime-type type="image/wmf">
    <alias type="image/x-wmf"/>
    <alias type="application/x-msmetafile"/>
    <acronym>WMF</acronym>
    <_comment>Windows Metafile</_comment>
    <glob pattern="*.wmf"/>
    <magic priority="50">
      <match value="0xd7cdc69a0000" type="string" offset="0"/>
      <match value="0x010009000003" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="image/vnd.xiff">
    <glob pattern="*.xif"/>
  </mime-type>
  <mime-type type="image/x-cmu-raster">
    <glob pattern="*.ras"/>
  </mime-type>
  <mime-type type="image/x-cmx">
    <glob pattern="*.cmx"/>
  </mime-type>

  <mime-type type="image/x-freehand">
    <_comment>FreeHand image</_comment>
    <magic priority="50">
      <match value="AGD2" type="string" offset="0"/>
      <match value="AGD3" type="string" offset="0"/>
      <match value="AGD4" type="string" offset="0"/>
      <match value="FreeHand10" type="string" offset="0:24"/>
      <match value="FreeHand11" type="string" offset="0:24"/>
      <match value="FreeHand12" type="string" offset="0:24"/>
    </magic>
    <glob pattern="*.fh"/>
    <glob pattern="*.fhc"/>
    <glob pattern="*.fh4"/>
    <glob pattern="*.fh40"/>
    <glob pattern="*.fh5"/>
    <glob pattern="*.fh50"/>
    <glob pattern="*.fh7"/>
    <glob pattern="*.fh8"/>
    <glob pattern="*.fh9"/>
    <glob pattern="*.fh10"/>
    <glob pattern="*.fh11"/>
    <glob pattern="*.fh12"/>
    <glob pattern="*.ft7"/>
    <glob pattern="*.ft8"/>
    <glob pattern="*.ft9"/>
    <glob pattern="*.ft10"/>
    <glob pattern="*.ft11"/>
    <glob pattern="*.ft12"/>
  </mime-type>

  <mime-type type="image/x-jbig2">
    <alias type="image/x-jb2"/>
    <acronym>JBIG2</acronym>
    <_comment>
      A lossless image compression standard from the
      Joint Bi-level Image Experts Group.
    </_comment>
    <tika:link>http://www.itu.int/rec/T-REC-T.88/en</tika:link>
    <magic priority="50">
      <match value="0x974A42320D0A1A0A" type="string" offset="0"/>
    </magic>
    <glob pattern="*.jb2"/>
    <glob pattern="*.jbig2"/>
  </mime-type>

  <mime-type type="image/x-jp2-codestream">
    <_comment>JPEG 2000 Codestream</_comment>
    <magic priority="25">
      <match value="0xff4fff51" type="string" offset="0"/>
    </magic>
    <glob pattern="*.j2c"/>
  </mime-type>

  <mime-type type="image/x-jp2-container">
    <_comment>JPEG 2000 Container Format</_comment>
    <magic priority="50">
      <match value="0x0000000C6A5020200D0A870A" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="image/x-niff">
    <_comment>Navy Interchange File Format</_comment>
    <magic priority="50">
      <match value="IIN1" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="image/x-pict">
    <_comment>Apple Macintosh QuickDraw/PICT Format</_comment>
    <magic priority="50">
      <match value="0x001102FF0C00" type="string" offset="522"/>
    </magic>
    <glob pattern="*.pic"/>
    <glob pattern="*.pct"/>
    <glob pattern="*.pict"/>
  </mime-type>

  <mime-type type="image/x-portable-anymap">
    <acronym>PNM</acronym>
    <_comment>Portable Any Map</_comment>
    <glob pattern="*.pnm" />
  </mime-type>

  <mime-type type="image/x-portable-bitmap">
    <sub-class-of type="image/x-portable-anymap"/>
    <acronym>PBM</acronym>
    <_comment>Portable Bit Map</_comment>
    <magic priority="50">
      <match value="P1" type="string" offset="0"/>
      <match value="P4" type="string" offset="0"/>
    </magic>
    <glob pattern="*.pbm"/>
  </mime-type>

  <mime-type type="image/x-portable-graymap">
    <sub-class-of type="image/x-portable-anymap"/>
    <acronym>PGM</acronym>
    <_comment>Portable Graymap Graphic</_comment>
    <magic priority="50">
      <match value="P2" type="string" offset="0"/>
      <match value="P5" type="string" offset="0"/>
      <match offset="0" type="string" value="\x50\x35\x0a"/>
    </magic>
    <glob pattern="*.pgm"/>
  </mime-type>

  <mime-type type="image/x-portable-pixmap">
    <sub-class-of type="image/x-portable-anymap"/>
    <acronym>PXM</acronym>
    <_comment>UNIX Portable Bitmap Graphic</_comment>
    <magic priority="50">
      <match value="P3" type="string" offset="0"/>
      <match value="P6" type="string" offset="0"/>
      <match value="P7" type="string" offset="0"/>
       <match offset="0" type="string" value="\x50\x34\x0a"/>
    </magic>
    <glob pattern="*.ppm"/>
  </mime-type>

  <mime-type type="image/x-raw-adobe">
    <acronym>DNG</acronym>
    <_comment>Adobe Digital Negative</_comment>
    <glob pattern="*.dng"/>
  </mime-type>

  <mime-type type="image/x-raw-hasselblad">
    <_comment>Hasselblad raw image</_comment>
    <glob pattern="*.3fr"/>
  </mime-type>

  <mime-type type="image/x-raw-fuji">
    <_comment>Fuji raw image</_comment>
    <glob pattern="*.raf"/>
  </mime-type>

  <mime-type type="image/x-raw-canon">
    <_comment>Canon raw image</_comment>
    <glob pattern="*.crw"/>
    <glob pattern="*.cr2"/>
  </mime-type>

  <mime-type type="image/x-raw-kodak">
    <_comment>Kodak raw image</_comment>
    <glob pattern="*.k25"/>
    <glob pattern="*.kdc"/>
    <glob pattern="*.dcs"/>
    <glob pattern="*.drf"/>
  </mime-type>

  <mime-type type="image/x-raw-minolta">
    <_comment>Minolta raw image</_comment>
    <glob pattern="*.mrw"/>
  </mime-type>

  <mime-type type="image/x-raw-nikon">
    <_comment>Nikon raw image</_comment>
    <glob pattern="*.nef"/>
    <glob pattern="*.nrw"/>
  </mime-type>

  <mime-type type="image/x-raw-olympus">
    <_comment>Olympus raw image</_comment>
    <glob pattern="*.orf"/>
  </mime-type>

  <mime-type type="image/x-raw-pentax">
    <_comment>Pentax raw image</_comment>
    <glob pattern="*.ptx"/>
    <glob pattern="*.pef"/>
  </mime-type>

  <mime-type type="image/x-raw-sony">
    <_comment>Sony raw image</_comment>
    <glob pattern="*.arw"/>
    <glob pattern="*.srf"/>
    <glob pattern="*.sr2"/>
  </mime-type>

  <mime-type type="image/x-raw-sigma">
    <_comment>Sigma raw image</_comment>
    <glob pattern="*.x3f"/>
  </mime-type>

  <mime-type type="image/x-raw-epson">
    <_comment>Epson raw image</_comment>
    <glob pattern="*.erf"/>
  </mime-type>

  <mime-type type="image/x-raw-mamiya">
    <_comment>Mamiya raw image</_comment>
    <glob pattern="*.mef"/>
  </mime-type>

  <mime-type type="image/x-raw-leaf">
    <_comment>Leaf raw image</_comment>
    <glob pattern="*.mos"/>
  </mime-type>

  <mime-type type="image/x-raw-panasonic">
    <_comment>Panasonic raw image</_comment>
    <glob pattern="*.raw"/>
    <glob pattern="*.rw2"/>
  </mime-type>

  <mime-type type="image/x-raw-phaseone">
    <_comment>Phase One raw image</_comment>
    <glob pattern="*.iiq"/>
  </mime-type>

  <mime-type type="image/x-raw-red">
    <_comment>Red raw image</_comment>
    <glob pattern="*.r3d"/>
  </mime-type>

  <mime-type type="image/x-raw-imacon">
    <_comment>Imacon raw image</_comment>
    <glob pattern="*.fff"/>
  </mime-type>

  <mime-type type="image/x-raw-logitech">
    <_comment>Logitech raw image</_comment>
    <glob pattern="*.pxn"/>
  </mime-type>

  <mime-type type="image/x-raw-casio">
    <_comment>Casio raw image</_comment>
    <glob pattern="*.bay"/>
  </mime-type>

  <mime-type type="image/x-raw-rawzor">
    <_comment>Rawzor raw image</_comment>
    <glob pattern="*.rwz"/>
  </mime-type>

  <mime-type type="image/x-rgb">
    <_comment>Silicon Graphics RGB Bitmap</_comment>
    <magic priority="50">
      <match offset="0" type="string" value="\x01\xda\x01\x01\x00\x03"/>
    </magic>
    <glob pattern="*.rgb"/>
  </mime-type>

  <mime-type type="image/x-xbitmap">
    <magic priority="50">
      <match value="/* XPM" type="string" offset="0"/>
    </magic>
    <glob pattern="*.xbm"/>
    <sub-class-of type="text/x-c"/>
  </mime-type>

  <mime-type type="image/x-xcf">
    <_comment>GIMP Image File</_comment>
    <alias type="image/xcf"/>
    <magic priority="50">
      <match type="string" value="gimp xcf " offset="0"/>
    </magic>
    <glob pattern="*.xcf"/>
  </mime-type>

  <mime-type type="image/x-xpixmap">
    <glob pattern="*.xpm"/>
  </mime-type>

  <mime-type type="image/x-xwindowdump">
    <_comment>X Windows Dump</_comment>
    <glob pattern="*.xwd"/>
  </mime-type>

  <mime-type type="message/cpim"/>
  <mime-type type="message/delivery-status"/>
  <mime-type type="message/disposition-notification"/>
  <mime-type type="message/example"/>
  <mime-type type="message/external-body"/>
  <mime-type type="message/global"/>
  <mime-type type="message/global-delivery-status"/>
  <mime-type type="message/global-disposition-notification"/>
  <mime-type type="message/global-headers"/>
  <mime-type type="message/http"/>
  <mime-type type="message/imdn+xml"/>

  <mime-type type="message/news">
    <magic priority="50">
      <match value="Path:" type="string" offset="0" />
      <match value="Xref:" type="string" offset="0" />
      <match value="Article" type="string" offset="0" />
    </magic>
    <sub-class-of type="text/x-tika-text-based-message"/>
  </mime-type>

  <mime-type type="message/partial"/>

  <mime-type type="message/rfc822">
    <magic priority="50">
      <match value="Delivered-To:" type="string" offset="0"/>
      <match value="Status:" type="string" offset="0"/>
      <match value="Relay-Version:" type="stringignorecase" offset="0"/>
      <match value="#!\ rnews" type="string" offset="0"/>
      <match value="N#!\ rnews" type="string" offset="0"/>
      <match value="Forward\ to" type="string" offset="0"/>
      <match value="Pipe\ to" type="string" offset="0"/>
      <match value="Return-Path:" type="stringignorecase" offset="0"/>
      <match value="From:" type="stringignorecase" offset="0"/>
      <match value="Received:" type="stringignorecase" offset="0"/>
      <match value="Message-ID:" type="stringignorecase" offset="0"/>
      <match value="\nReturn-Path:" type="stringignorecase" offset="0:1000"/>
      <match value="\nX-Originating-IP:" type="stringignorecase" offset="0:1000"/>
      <match value="\nReceived:" type="stringignorecase" offset="0:1000"/>
      <match value="Date:" type="string" offset="0"/>
      <match value="User-Agent:" type="string" offset="0"/>
      <match value="MIME-Version:" type="stringignorecase" offset="0"/>
      <match value="X-Mailer:" type="string" offset="0"/>
      <match value="X-Notes-Item:" type="string" offset="0">
        <match value="Message-ID:" type="string" offset="0:8192"/>
      </match>
      <match value="X-" type="stringignorecase" offset="0">
        <match value="\nMessage-ID:" type="string" offset="0:8192"/>
        <match value="\nFrom:" type="stringignorecase" offset="0:8192"/>
        <match value="\nTo:" type="stringignorecase" offset="0:8192"/>
        <match value="\nSubject:" type="string" offset="0:8192"/>
        <match value="\nMIME-Version:" type="stringignorecase" offset="0:8192"/>
      </match>
      <match value="DKIM-" type="string" offset="0">
        <match value="\nMessage-ID:" type="string" offset="0:8192"/>
        <match value="\nFrom:" type="stringignorecase" offset="0:8192"/>
        <match value="\nTo:" type="stringignorecase" offset="0:8192"/>
        <match value="\nSubject:" type="string" offset="0:8192"/>
        <match value="\nMIME-Version:" type="stringignorecase" offset="0:8192"/>
      </match>
    </magic>
    <magic priority="40">
      <!-- lower priority than message/news -->
      <match value="\nMessage-ID:" type="stringignorecase" offset="0:1000"/>
    </magic>
    <glob pattern="*.eml"/>
    <glob pattern="*.mime"/>
    <sub-class-of type="text/x-tika-text-based-message"/>
  </mime-type>

  <!-- TODO See TIKA-2723 for discussions on the mime type hierarchy -->
  <!--  and best parser structure for these email-like formats -->
  <mime-type type="multipart/related">
    <acronym>MHTML</acronym>
    <_comment>MIME Encapsulation of Aggregate HTML Documents</_comment>
    <tika:link>http://tools.ietf.org/html/rfc2557</tika:link>
    <alias type="application/x-mimearchive"/>
    <alias type="message/rfc2557"/>
    <!-- higher priority than message/rfc822 -->
    <magic priority="60">
      <match value="From: \x3cSaved by Windows Internet Explorer 8\x3e" type="stringignorecase" offset="0"/>
      <match value="From: \x22Saved by Internet Explorer 11\x22" type="stringignorecase" offset="0"/>
      <match value="MIME-Version: 1.0" type="string" offset="0">
        <match value="\nContent-Type: multipart/related" type="string" offset="16:512"/>
      </match>
    </magic>
    <glob pattern="*.mht"/>
    <glob pattern="*.mhtml"/>
    <sub-class-of type="message/rfc822"/>
  </mime-type>

  <mime-type type="message/s-http"/>
  <mime-type type="message/sip"/>
  <mime-type type="message/sipfrag"/>
  <mime-type type="message/tracking-status"/>
  <mime-type type="message/vnd.si.simp"/>

  <mime-type type="model/example"/>

  <mime-type type="model/iges">
    <_comment>Initial Graphics Exchange Specification Format</_comment>
    <glob pattern="*.igs"/>
    <glob pattern="*.iges"/>
  </mime-type>

  <mime-type type="model/mesh">
    <glob pattern="*.msh"/>
    <glob pattern="*.mesh"/>
    <glob pattern="*.silo"/>
  </mime-type>

  <mime-type type="model/vnd.dwf">
    <acronym>DWF</acronym>
    <_comment>AutoCAD Design Web Format</_comment>
    <alias type="drawing/x-dwf"/>
    <magic priority="50">
      <match type="string" offset="0" value="(DWF V">
         <match type="string" offset="8" value=".">
            <match type="string" offset="11" value=")" />
         </match>
      </match>
    </magic>
    <glob pattern="*.dwf"/>
  </mime-type>
  <mime-type type="model/vnd.dwf;version=6">
    <!-- Zip file with DWF header on the front -->
    <magic priority="60">
      <match type="string" offset="0" value="(DWF V06.">
         <match type="string" offset="11" value=")PK" />
      </match>
    </magic>
    <sub-class-of type="model/vnd.dwf"/>
  </mime-type>
  <mime-type type="model/vnd.dwf;version=5">
    <magic priority="60">
      <match type="string" offset="0" value="(DWF V00.55)"/>
    </magic>
  </mime-type>
  <mime-type type="model/vnd.dwf;version=2">
    <magic priority="60">
      <match type="string" offset="0" value="(DWF V00.22)"/>
    </magic>
  </mime-type>

  <mime-type type="model/vnd.dwfx+xps">
    <_comment>AutoCAD Design Web Format</_comment>
    <glob pattern="*.dwfx"/>
    <sub-class-of type="application/x-tika-ooxml"/>
  </mime-type>

  <mime-type type="model/vnd.flatland.3dml"/>
  <mime-type type="model/vnd.gdl">
    <glob pattern="*.gdl"/>
  </mime-type>
  <mime-type type="model/vnd.gs-gdl"/>
  <mime-type type="model/vnd.gs.gdl"/>
  <mime-type type="model/vnd.gtw">
    <glob pattern="*.gtw"/>
  </mime-type>
  <mime-type type="model/vnd.moml+xml"/>
  <mime-type type="model/vnd.mts">
    <glob pattern="*.mts"/>
  </mime-type>
  <mime-type type="model/vnd.parasolid.transmit.binary"/>
  <mime-type type="model/vnd.parasolid.transmit.text"/>
  <mime-type type="model/vnd.vtu">
    <glob pattern="*.vtu"/>
  </mime-type>

  <mime-type type="model/vrml">
    <glob pattern="*.wrl"/>
    <glob pattern="*.vrml"/>
  </mime-type>

  <mime-type type="multipart/alternative"/>

  <mime-type type="multipart/appledouble">
    <magic priority="50">
      <match value="0x00051607" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="multipart/byteranges"/>
  <mime-type type="multipart/digest"/>
  <mime-type type="multipart/encrypted"/>
  <mime-type type="multipart/example"/>
  <mime-type type="multipart/form-data"/>
  <mime-type type="multipart/header-set"/>
  <mime-type type="multipart/mixed"/>
  <mime-type type="multipart/parallel"/>
  <mime-type type="multipart/report"/>
  <mime-type type="multipart/signed"/>
  <mime-type type="multipart/voice-message"/>

  <mime-type type="application/dif+xml">
    <root-XML localName="DIF"/>
    <root-XML localName="DIF" namespaceURI="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"/>
    <glob pattern="*.dif"/>
    <sub-class-of type="application/xml"/>
  </mime-type>

  <mime-type type="text/x-actionscript">
    <_comment>ActionScript source code</_comment>
    <glob pattern="*.as"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-ada">
    <_comment>Ada source code</_comment>
    <glob pattern="*.ada"/>
    <glob pattern="*.adb"/>
    <glob pattern="*.ads"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-applescript">
    <_comment>AppleScript source code</_comment>
    <glob pattern="*.applescript"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/asp" interpreted="true">
    <_comment>Active Server Page</_comment>
    <glob pattern="*.asp"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/aspdotnet" interpreted="true">
    <_comment>ASP .NET</_comment>
    <glob pattern="*.aspx"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-aspectj">
    <_comment>AspectJ source code</_comment>
    <glob pattern="*.aj"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-assembly">
    <alias type="text/x-asm"/>
    <_comment>Assembler source code</_comment>
    <glob pattern="*.s"/>
    <glob pattern="*.S"/>
    <glob pattern="*.asm"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/calendar">
    <magic priority="50">
      <match value="BEGIN:VCALENDAR" type="string" offset="0">
        <match value="VERSION:2.0" type="string" offset="15:30"/>
      </match>
    </magic>
    <glob pattern="*.ics"/>
    <glob pattern="*.ifb"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/css">
    <_comment>Cascading Style Sheet</_comment>
    <glob pattern="*.css"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/csv">
    <glob pattern="*.csv"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/directory"/>
  <mime-type type="text/dns"/>
  <mime-type type="text/ecmascript"/>
  <mime-type type="text/enriched"/>
  <mime-type type="text/example"/>

  <mime-type type="text/html">
    <_comment>HyperText Markup Language</_comment>
    <acronym>HTML</acronym>
    <tika:uti>public.html</tika:uti>
     <!-- TIKA-327: if you encounter tags in the HTML
          with no declared namespace, it's not XHTML, it's just
          bad HTML, unfortunately.
     -->
    <root-XML localName="html"/>
    <root-XML localName="HTML"/>
    <root-XML localName="link"/>
    <root-XML localName="LINK"/>
    <root-XML localName="body"/>
    <root-XML localName="BODY"/>
    <root-XML localName="p"/>
    <root-XML localName="P"/>
    <root-XML localName="script"/>
    <root-XML localName="SCRIPT"/>
    <root-XML localName="frameset"/>
    <root-XML localName="FRAMESET"/>
    <!-- The magic priority needs to be lower than that of -->
    <!--  files which contain HTML within them, eg mime emails -->
    <magic priority="40">
      <match value="&lt;!DOCTYPE HTML" type="string" offset="0:64"/>
      <match value="&lt;!DOCTYPE html" type="string" offset="0:64"/>
      <match value="&lt;!doctype HTML" type="string" offset="0:64"/>
      <match value="&lt;!doctype html" type="string" offset="0:64"/>
      <match value="&lt;HEAD" type="string" offset="0:64"/>
      <match value="&lt;head" type="string" offset="0:64"/>
      <match value="&lt;TITLE" type="string" offset="0:64"/>
      <match value="&lt;title" type="string" offset="0:64"/>
      <match value="&lt;HTML" type="string" offset="0:64"/>
      <match value="&lt;BODY" type="string" offset="0"/>
      <match value="&lt;body" type="string" offset="0"/>
      <match value="&lt;DIV" type="string" offset="0"/>
      <match value="&lt;div" type="string" offset="0"/>
      <match value="&lt;TITLE" type="string" offset="0"/>
      <match value="&lt;title" type="string" offset="0"/>
      <match value="&lt;h1" type="string" offset="0"/>
      <match value="&lt;H1" type="string" offset="0"/>
      <match value="&lt;html" type="string" offset="0:128"/>
    </magic>
    <magic priority="20">
      <!-- Lower priority match for <html anywhere near the top of the file -->
      <!-- note on the offset value here: this can only be as big as
           MimeTypes#getMinLength(). If you set the offset value to larger
           than that size, the magic will only be compared to up to
           MimeTypes#getMinLength() bytes. It should also only start after
           the higher priority "start of file" one above
       -->
      <match value="&lt;html" type="string" offset="128:8192"/>
    </magic>
    <glob pattern="*.html"/>
    <glob pattern="*.htm"/>
  </mime-type>

  <mime-type type="text/parityfec"/>

  <mime-type type="text/plain">
    <magic priority="20">
      <match value="This is TeX," type="string" offset="0"/>
      <match value="This is METAFONT," type="string" offset="0"/>
      <match value="/*" type="string" offset="0"/>
      <match value="//" type="string" offset="0"/>
      <match value=";;" type="string" offset="0"/>
      <!-- UTF-16BE BOM -->
      <match value="0xfeff" type="string" offset="0"/>
      <!-- UTF-16LE BOM -->
      <match value="0xfffe" type="string" offset="0"/>
      <!-- UTF-8 BOM -->
      <match value="0xefbbbf" type="string" offset="0"/>
    </magic>

    <glob pattern="*.txt"/>
    <glob pattern="*.text"/>
    <glob pattern="*.conf"/>
    <glob pattern="*.cfg"/>
    <glob pattern="*.def"/>
    <glob pattern="*.list"/>
    <glob pattern="*.in"/>

    <!-- TIKA-85: http://www.apache.org/dev/svn-eol-style.txt -->
    <glob pattern="INSTALL"/>
    <glob pattern="KEYS"/>
    <glob pattern="Makefile"/>
    <glob pattern="README"/>
    <glob pattern="abs-linkmap"/>
    <glob pattern="abs-menulinks"/>
    <glob pattern="*.aart"/>
    <glob pattern="*.ac"/>
    <glob pattern="*.am"/>
    <glob pattern="*.classpath"/>
    <glob pattern="*.config"/>
    <glob pattern="*.cwiki"/>
    <glob pattern="*.data"/>
    <glob pattern="*.dcl"/>
    <glob pattern="*.egrm"/>
    <glob pattern="*.ent"/>
    <glob pattern="*.ft"/>
    <glob pattern="*.fn"/>
    <glob pattern="*.fv"/>
    <glob pattern="*.grm"/>
    <glob pattern="*.g"/>
    <glob pattern=".htaccess"/>
    <glob pattern="*.ihtml"/>
    <glob pattern="*.jmx"/>
    <glob pattern="*.junit"/>
    <glob pattern="*.jx"/>
    <glob pattern="*.manifest"/>
    <glob pattern="*.m4"/>
    <glob pattern="*.mf"/>
    <glob pattern="*.MF"/>
    <glob pattern="*.meta"/>
    <glob pattern="*.n3"/>
    <glob pattern="*.pen"/>
    <glob pattern="*.pod"/>
    <glob pattern="*.pom"/>
    <glob pattern="*.project"/>
    <glob pattern="*.rng"/>
    <glob pattern="*.rnx"/>
    <glob pattern="*.roles"/>
    <glob pattern="*.tld"/>
    <glob pattern="*.types"/>
    <glob pattern="*.vm"/>
    <glob pattern="*.vsl"/>
    <glob pattern="*.wsdd"/>
    <glob pattern="*.xargs"/>
    <glob pattern="*.xcat"/>
    <glob pattern="*.xconf"/>
    <glob pattern="*.xegrm"/>
    <glob pattern="*.xgrm"/>
    <glob pattern="*.xlex"/>
    <glob pattern="*.xlog"/>
    <glob pattern="*.xmap"/>
    <glob pattern="*.xroles"/>
    <glob pattern="*.xsamples"/>
    <glob pattern="*.xsp"/>
    <glob pattern="*.xweb"/>
    <glob pattern="*.xwelcome"/>
  </mime-type>

  <mime-type type="text/prs.fallenstein.rst"/>
  <mime-type type="text/prs.lines.tag">
    <glob pattern="*.dsc"/>
  </mime-type>
  <mime-type type="text/red"/>
  <mime-type type="text/rfc822-headers"/>
  <mime-type type="text/richtext">
    <glob pattern="*.rtx"/>
  </mime-type>

  <mime-type type="text/rtp-enc-aescm128"/>
  <mime-type type="text/rtx"/>
  <mime-type type="text/sgml">
    <glob pattern="*.sgml"/>
    <glob pattern="*.sgm"/>
  </mime-type>
  <mime-type type="text/t140"/>
  <mime-type type="text/tab-separated-values">
    <glob pattern="*.tsv"/>
  </mime-type>

  <mime-type type="text/troff">
    <_comment>Roff/nroff/troff/groff Unformatted Manual Page (UNIX)</_comment>
    <alias type="application/x-troff"/>
    <alias type="application/x-troff-man"/>
    <alias type="application/x-troff-me"/>
    <alias type="application/x-troff-ms"/>
    <magic priority="50">
      <match value=".\\&quot;" type="string" offset="0"/>
      <match value="'\\&quot;" type="string" offset="0"/>
      <match value="'.\\&quot;" type="string" offset="0"/>
      <match value="\\&quot;" type="string" offset="0"/>
      <match value="'''" type="string" offset="0"/>
    </magic>
    <glob pattern="*.t"/>
    <glob pattern="*.tr"/>
    <glob pattern="*.roff"/>
    <glob pattern="*.man"/>
    <glob pattern="*.me"/>
    <glob pattern="*.ms"/>
  </mime-type>

  <mime-type type="text/ulpfec"/>
  <mime-type type="text/uri-list">
    <glob pattern="*.uri"/>
    <glob pattern="*.uris"/>
    <glob pattern="*.urls"/>
  </mime-type>
  <mime-type type="text/vnd.abc"/>
  <mime-type type="text/vnd.curl">
    <glob pattern="*.curl"/>
  </mime-type>
  <mime-type type="text/vnd.curl.dcurl">
    <glob pattern="*.dcurl"/>
  </mime-type>
  <mime-type type="text/vnd.curl.scurl">
    <glob pattern="*.scurl"/>
  </mime-type>
  <mime-type type="text/vnd.curl.mcurl">
    <glob pattern="*.mcurl"/>
  </mime-type>
  <mime-type type="text/vnd.dmclientscript"/>
  <mime-type type="text/vnd.esmertec.theme-descriptor"/>
  <mime-type type="text/vnd.fly">
    <glob pattern="*.fly"/>
  </mime-type>
  <mime-type type="text/vnd.fmi.flexstor">
    <glob pattern="*.flx"/>
  </mime-type>
  <mime-type type="text/vnd.graphviz">
    <_comment>Graphviz Graph Visualization Software</_comment>
    <glob pattern="*.gv"/>
    <!-- glob pattern="*.dot" - conflicts with application/msword -->
    <magic priority="50">
      <match value="(?s)^\\s*(?:strict\\s+)?(?:di)?graph\\b" type="regex" offset="0"/>
      <match value="(?s)^(?:\\s*//[^\\n]*\n){1,10}\\s*(?:strict\\s+)?(?:di)?graph\\b" type="regex" offset="0"/>
      <match value="(?s)^\\s*/\\*.{0,1024}?\\*/\\s*(?:strict\\s+)?(?:di)?graph\\b" type="regex" offset="0"/>
    </magic>
    <sub-class-of type="text/plain"/>
  </mime-type>
  <mime-type type="text/vnd.in3d.3dml">
    <glob pattern="*.3dml"/>
  </mime-type>
  <mime-type type="text/vnd.in3d.spot">
    <glob pattern="*.spot"/>
  </mime-type>
  <mime-type type="text/vnd.iptc.anpa">
    <acronym>ANPA</acronym>
    <_comment>American Newspaper Publishers Association Wire Feeds</_comment>
    <glob pattern="*.anpa"/>
    <magic priority="50">
      <match value="\x16\x16\x01" type="string" offset="0"/>
    </magic>
  </mime-type>
  <mime-type type="text/vnd.iptc.newsml"/>
  <mime-type type="text/vnd.iptc.nitf"/>
  <mime-type type="text/vnd.latex-z"/>
  <mime-type type="text/vnd.motorola.reflex"/>
  <mime-type type="text/vnd.ms-mediapackage"/>
  <mime-type type="text/vnd.net2phone.commcenter.command"/>
  <mime-type type="text/vnd.si.uricatalogue"/>
  <mime-type type="text/vnd.sun.j2me.app-descriptor">
    <glob pattern="*.jad"/>
  </mime-type>
  <mime-type type="text/vnd.trolltech.linguist"/>
  <mime-type type="text/vnd.wap.si"/>
  <mime-type type="text/vnd.wap.sl"/>
  <mime-type type="text/vnd.wap.wml">
    <glob pattern="*.wml"/>
  </mime-type>

  <mime-type type="text/vnd.wap.wmlscript">
    <_comment>WML Script</_comment>
    <glob pattern="*.wmls"/>
  </mime-type>

  <mime-type type="text/vtt">
    <_comment>Web Video Text Tracks Format</_comment>
    <acronym>WebVTT</acronym>
    <magic priority="40">
      <!-- Simple Form -->
      <match value="WEBVTT\r" type="string" offset="0"/>
      <match value="WEBVTT\n" type="string" offset="0"/>
      <!-- With Byte Order Mark -->
      <match value="0xfeff" offset="0">
         <match value="WEBVTT\r" type="string" offset="2"/>
      </match>
      <match value="0xfeff" offset="0">
         <match value="WEBVTT\n" type="string" offset="2"/>
      </match>
      <!-- Common Header -->
      <match value="WEBVTT FILE\r" type="string" offset="0"/>
      <match value="WEBVTT FILE\n" type="string" offset="0"/>
    </magic>
    <magic priority="30">
      <!-- With a custom header - needs a lower priority -->
      <match value="WEBVTT " type="string" offset="0">
        <match value="\n\n" type="string" offset="10:50" />
      </match>
      <match value="WEBVTT " type="string" offset="0">
        <match value="\r\r" type="string" offset="10:50" />
      </match>
      <match value="WEBVTT " type="string" offset="0">
        <match value="\r\n\r\n" type="string" offset="10:50" />
      </match>
    </magic>
    <glob pattern="*.vtt"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-awk">
    <_comment>AWK script</_comment>
    <magic priority="50">
      <match value="#!/bin/gawk" type="string" offset="0"/>
      <match value="#! /bin/gawk" type="string" offset="0"/>
      <match value="#!/usr/bin/gawk" type="string" offset="0"/>
      <match value="#! /usr/bin/gawk" type="string" offset="0"/>
      <match value="#!/usr/local/bin/gawk" type="string" offset="0"/>
      <match value="#! /usr/local/bin/gawk" type="string" offset="0"/>
      <match value="#!/bin/awk" type="string" offset="0"/>
      <match value="#! /bin/awk" type="string" offset="0"/>
      <match value="#!/usr/bin/awk" type="string" offset="0"/>
      <match value="#! /usr/bin/awk" type="string" offset="0"/>
    </magic>
    <glob pattern="*.awk"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-basic">
    <_comment>Basic source code</_comment>
    <glob pattern="*.bas"/>
    <glob pattern="*.Bas"/>
    <glob pattern="*.BAS"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-c++hdr">
    <_comment>C++ source code header</_comment>
    <glob pattern="*.hpp"/>
    <glob pattern="*.hxx"/>
    <glob pattern="*.hh"/>
    <glob pattern="*.H"/>
    <glob pattern="*.h++"/>
    <glob pattern="*.hp"/>
    <glob pattern="*.HPP"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-c++src">
    <_comment>C++ source code</_comment>
    <glob pattern="*.cpp"/>
    <glob pattern="*.cxx"/>
    <glob pattern="*.cc"/>
    <glob pattern="*.C"/>
    <glob pattern="*.c++"/>
    <glob pattern="*.CPP"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-cgi" interpreted="true">
    <_comment>CGI script</_comment>
    <glob pattern="*.cgi"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-chdr">
    <_comment>C source code header</_comment>
    <glob pattern="*.h"/>
    <magic priority="30">
      <match value="#ifndef " type="string" offset="0"/>
    </magic>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-clojure">
    <_comment>Clojure source code</_comment>
    <glob pattern="*.clj"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-coffeescript">
    <_comment>CoffeeScript source code</_comment>
    <glob pattern="*.coffee"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-csrc">
    <alias type="text/x-c"/>
    <_comment>C source code</_comment>
    <magic priority="30">
      <match value="#include " type="string" offset="0"/>
    </magic>
    <glob pattern="*.c"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-csharp">
    <_comment>C# source code</_comment>
    <glob pattern="*.cs"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-cobol">
    <_comment>COBOL source code</_comment>
    <glob pattern="*.cbl"/>
    <glob pattern="*.Cbl"/>
    <glob pattern="*.CBL"/>
    <glob pattern="*.cob"/>
    <glob pattern="*.Cob"/>
    <glob pattern="*.COB"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-coldfusion" interpreted="true">
    <_comment>ColdFusion source code</_comment>
    <glob pattern="*.cfm"/>
    <glob pattern="*.cfml"/>
    <glob pattern="*.cfc"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-common-lisp">
    <_comment>Common Lisp source code</_comment>
    <glob pattern="*.cl"/>
    <glob pattern="*.jl"/>
    <glob pattern="*.lisp"/>
    <glob pattern="*.lsp"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-diff">
    <magic priority="50">
      <match value="diff\ " type="string" offset="0"/>
      <match value="***\ " type="string" offset="0"/>
      <match value="Only\ in\ " type="string" offset="0"/>
      <match value="Common\ subdirectories:\ " type="string" offset="0"/>
      <match value="Index:" type="string" offset="0"/>
    </magic>
    <glob pattern="*.diff"/>
    <glob pattern="*.patch"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-eiffel">
    <_comment>Eiffel source code</_comment>
    <glob pattern="*.e"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-emacs-lisp">
    <_comment>Emacs Lisp source code</_comment>
    <glob pattern="*.el"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-erlang">
    <_comment>Erlang source code</_comment>
    <glob pattern="*.erl"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-expect">
    <_comment>Expect Script</_comment>
    <glob pattern="*.exp"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-forth">
    <_comment>Forth source code</_comment>
    <glob pattern="*.4th"/>
    <sub-class-of type="text/plain"/>
   </mime-type>

  <mime-type type="text/x-fortran">
    <_comment>Fortran source code</_comment>
    <glob pattern="*.f"/>
    <glob pattern="*.F"/>
    <glob pattern="*.for"/>
    <glob pattern="*.f77"/>
    <glob pattern="*.f90"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-go">
    <_comment>Go source code</_comment>
    <glob pattern="*.go"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-groovy">
    <_comment>Groovy source code</_comment>
    <glob pattern="*.groovy"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-haskell">
    <_comment>Haskell source code</_comment>
    <glob pattern="*.hs"/>
    <glob pattern="*.lhs"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-idl">
    <_comment>Inteface Definition Language</_comment>
    <glob pattern="*.idl"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-ini">
    <_comment>Configuration file</_comment>
    <glob pattern="*.ini"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-java-source">
    <_comment>Java source code</_comment>
    <alias type="text/x-java" />
    <glob pattern="*.java"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-java-properties">
    <_comment>Java Properties</_comment>
    <alias type="text/x-properties" />
    <alias type="text/properties" />
    <glob pattern="*.properties"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-jsp" interpreted="true">
    <_comment>Java Server Page</_comment>
    <alias type="application/x-httpd-jsp"/>
    <sub-class-of type="text/plain"/>
    <magic priority="50">
      <match value="&lt;%@" type="string" offset="0"/>
      <match value="&lt;%--" type="string" offset="0"/>
    </magic>
    <glob pattern="*.jsp"/>
  </mime-type>

  <mime-type type="text/x-less">
    <_comment>LESS source code</_comment>
    <glob pattern="*.less"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-lex">
    <_comment>Lex/Flex source code</_comment>
    <glob pattern="*.l"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-log">
    <_comment>application log</_comment>
    <glob pattern="*.log"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-lua">
    <_comment>Lua source code</_comment>
    <glob pattern="*.lua"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-ml">
    <_comment>ML source code</_comment>
    <glob pattern="*.ml"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-matlab">
    <_comment>Matlab source code</_comment>
    <!-- Multiple-output function definition -->
    <magic priority="50">
      <match value="function [" type="string" offset="0"/>
    </magic>
    <!-- Single-output or no output function definition -->
    <magic priority="40">
      <match value="function [a-zA-Z][A-Za-z0-9_]{0,5}" type="regex" offset="0"/>
    </magic>
    <!-- Two matlab-style comments fairly early in the file -->
    <magic priority="25">
      <match value="%" type="string" offset="0">
         <match value="\n%" type="string" offset="2:120"/>
      </match>
      <match value="%" type="string" offset="0">
         <match value="\r%" type="string" offset="2:120"/>
      </match>
      <match value="%%" type="string" offset="0">
      </match>
    </magic>
    <!-- <glob pattern="*.m"/> - conflicts with text/x-objcsrc -->
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="application/x-matlab-data">
    <comment>MATLAB data file</comment>
    <alias type="application/matlab-mat"/>
    <magic priority="50">
      <match value="MATLAB" type="string" offset="0"/>
    </magic>
      <glob pattern="*.mat"/>
  </mime-type>

  <mime-type type="text/x-modula">
    <_comment>Modula source code</_comment>
    <glob pattern="*.m3"/>
    <glob pattern="*.i3"/>
    <glob pattern="*.mg"/>
    <glob pattern="*.ig"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-objcsrc">
    <_comment>Objective-C source code</_comment>
    <glob pattern="*.m"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-ocaml">
    <_comment>Ocaml source code</_comment>
    <glob pattern="*.ocaml"/>
    <glob pattern="*.mli"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-pascal">
    <_comment>Pascal source code</_comment>
    <glob pattern="*.p"/>
    <glob pattern="*.pp"/>
    <glob pattern="*.pas"/>
    <glob pattern="*.PAS"/>
    <glob pattern="*.dpr"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-perl">
    <_comment>Perl script</_comment>
    <magic priority="50">
      <match value="eval \&quot;exec /usr/local/bin/perl" type="string" offset="0"/>
      <match value="#!/bin/perl" type="string" offset="0"/>
      <match value="#!/bin/env perl" type="string" offset="0"/>
      <match value="#!/usr/bin/perl" type="string" offset="0"/>
      <match value="#!/usr/local/bin/perl" type="string" offset="0"/>
    </magic>
    <glob pattern="*.pl"/>
    <glob pattern="*.pm"/>
    <glob pattern="*.al"/>
    <glob pattern="*.perl"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-php" interpreted="true">
    <_comment>PHP script</_comment>
    <magic priority="50">
      <match value="&lt;?php" type="string" offset="0"/>
    </magic>
    <glob pattern="*.php"/>
    <glob pattern="*.php3"/>
    <glob pattern="*.php4"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-prolog">
    <_comment>Prolog source code</_comment>
    <glob pattern="*.pro"/>
    <!-- <glob pattern="*.pl"/> - conflicts with text/x-perl -->
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-python">
    <_comment>Python script</_comment>
    <magic priority="50">
      <match value="#!/bin/python" type="string" offset="0"/>
      <match value="#! /bin/python" type="string" offset="0"/>
      <match value="eval &quot;exec /bin/python" type="string" offset="0"/>
      <match value="#!/usr/bin/python" type="string" offset="0"/>
      <match value="#! /usr/bin/python" type="string" offset="0"/>
      <match value="eval &quot;exec /usr/bin/python" type="string" offset="0"/>
      <match value="#!/usr/local/bin/python" type="string" offset="0"/>
      <match value="#! /usr/local/bin/python" type="string" offset="0"/>
      <match value="eval &quot;exec /usr/local/bin/python" type="string" offset="0"/>
      <match value="/bin/env python" type="string" offset="1"/>
    </magic>
    <glob pattern="*.py"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-rst">
    <_comment>reStructuredText source code</_comment>
    <glob pattern="*.rest"/>
    <glob pattern="*.rst"/>
    <glob pattern="*.restx"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-rexx">
    <_comment>Rexx source code</_comment>
    <glob pattern="*.rexx"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-ruby">
    <_comment>Ruby source code</_comment>
    <glob pattern="*.rb"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-scala">
    <_comment>Scala source code</_comment>
    <glob pattern="*.scala"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-scheme">
    <_comment>Scheme source code</_comment>
    <glob pattern="*.scm"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-sed">
    <_comment>Sed code</_comment>
    <glob pattern="*.sed"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-sql">
    <_comment>SQL code</_comment>
    <glob pattern="*.sql"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-setext">
    <glob pattern="*.etx"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-stsrc">
    <_comment>Smalltalk source code</_comment>
    <glob pattern="*.st"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-tcl">
    <alias type="application/x-tcl"/>
    <_comment>Tcl script</_comment>
    <glob pattern="*.itk"/>
    <glob pattern="*.tcl"/>
    <glob pattern="*.tk"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-tika-text-based-message">
    <_comment>Text-based (non-binary) Message</_comment>
  </mime-type>

  <mime-type type="text/x-uuencode">
    <glob pattern="*.uu"/>
  </mime-type>

  <mime-type type="text/x-vbasic">
    <_comment>Visual basic source code</_comment>
    <glob pattern="*.cls"/>
    <glob pattern="*.Cls"/>
    <glob pattern="*.CLS"/>
    <glob pattern="*.frm"/>
    <glob pattern="*.Frm"/>
    <glob pattern="*.FRM"/>
    <sub-class-of type="text/x-basic"/>
  </mime-type>

  <mime-type type="text/x-vbdotnet">
    <_comment>VB.NET source code</_comment>
    <glob pattern="*.vb"/>
    <sub-class-of type="text/x-vbasic"/>
  </mime-type>

  <mime-type type="text/x-vbscript">
    <_comment>VBScript source code</_comment>
    <glob pattern="*.vbs"/>
    <sub-class-of type="text/x-vbasic"/>
  </mime-type>

  <mime-type type="text/x-vcalendar">
    <magic priority="50">
      <match value="BEGIN:VCALENDAR" type="string" offset="0">
        <match value="VERSION:1.0" type="string" offset="15:30"/>
      </match>
    </magic>
    <glob pattern="*.vcs"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-vcard">
    <glob pattern="*.vcf"/>
    <sub-class-of type="text/plain"/>
    <magic priority="50">
      <match value="BEGIN:VCARD" type="string" offset="0"/>
    </magic>
  </mime-type>

  <mime-type type="text/x-verilog">
    <_comment>Verilog source code</_comment>
    <glob pattern="*.v"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-vhdl">
    <_comment>VHDL source code</_comment>
    <glob pattern="*.vhd"/>
    <glob pattern="*.vhdl"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-web-markdown">
    <_comment>Markdown source code</_comment>
    <glob pattern="*.md"/>
    <glob pattern="*.mdtext"/>
    <glob pattern="*.mkd"/>
    <glob pattern="*.markdown"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-yacc">
    <_comment>Yacc/Bison source code</_comment>
    <glob pattern="*.y"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-yaml">
    <_comment>YAML source code</_comment>
    <glob pattern="*.yaml"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="video/3gpp">
    <magic priority="60">
      <match value="ftyp3ge6" type="string" offset="4"/>
      <match value="ftyp3ge7" type="string" offset="4"/>
      <match value="ftyp3gg6" type="string" offset="4"/>
      <match value="ftyp3gp1" type="string" offset="4"/>
      <match value="ftyp3gp2" type="string" offset="4"/>
      <match value="ftyp3gp3" type="string" offset="4"/>
      <match value="ftyp3gp4" type="string" offset="4"/>
      <match value="ftyp3gp5" type="string" offset="4"/>
      <match value="ftyp3gp6" type="string" offset="4"/>
      <match value="ftyp3gs7" type="string" offset="4"/>
    </magic>
    <glob pattern="*.3gp"/>
  </mime-type>
  <mime-type type="video/3gpp-tt"/>
  <mime-type type="video/3gpp2">
    <magic priority="60">
      <match value="ftyp3g2a" type="string" offset="4"/>
      <match value="ftyp3g2b" type="string" offset="4"/>
      <match value="ftyp3g2c" type="string" offset="4"/>
    </magic>
    <glob pattern="*.3g2"/>
  </mime-type>
  <mime-type type="video/bmpeg"/>
  <mime-type type="video/bt656"/>
  <mime-type type="video/celb"/>
  <mime-type type="video/dv"/>
  <mime-type type="video/example"/>
  <mime-type type="video/h261">
    <glob pattern="*.h261"/>
  </mime-type>
  <mime-type type="video/h263">
    <glob pattern="*.h263"/>
  </mime-type>
  <mime-type type="video/h263-1998"/>
  <mime-type type="video/h263-2000"/>
  <mime-type type="video/h264">
    <glob pattern="*.h264"/>
  </mime-type>
  <mime-type type="video/jpeg">
    <glob pattern="*.jpgv"/>
  </mime-type>
  <mime-type type="video/jpeg2000"/>

  <mime-type type="video/mj2">
    <sub-class-of type="image/x-jp2-container" />
    <acronym>MJ2</acronym>
    <_comment>JPEG 2000 Part 3 (Motion JPEG, MJ2)</_comment>
    <magic priority="50">
      <match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
        <match value="0x6d6a7032" type="string" offset="20"/>
      </match>
    </magic>
    <glob pattern="*.mj2"/>
    <glob pattern="*.mjp2"/>
  </mime-type>

  <mime-type type="video/mp1s"/>
  <mime-type type="video/mp2p"/>
  <mime-type type="video/mp2t"/>

  <mime-type type="video/mp4">
    <magic priority="60">
      <match value="ftypmp41" type="string" offset="4"/>
      <match value="ftypmp42" type="string" offset="4"/>
    </magic>
    <glob pattern="*.mp4"/>
    <glob pattern="*.mp4v"/>
    <glob pattern="*.mpg4"/>
    <sub-class-of type="video/quicktime" />
  </mime-type>
  <mime-type type="video/mp4v-es"/>

  <mime-type type="video/mpeg">
    <_comment>MPEG Movie Clip</_comment>
    <magic priority="50">
      <match value="\000\000\001\263" type="string" offset="0"/>
      <match value="\000\000\001\272" type="string" offset="0"/>
    </magic>
    <glob pattern="*.mpeg"/>
    <glob pattern="*.mpg"/>
    <glob pattern="*.mpe"/>
    <glob pattern="*.m1v"/>
    <glob pattern="*.m2v"/>
  </mime-type>

  <mime-type type="video/mpeg4-generic"/>
  <mime-type type="video/mpv"/>
  <mime-type type="video/nv"/>

  <mime-type type="video/ogg">
    <_comment>Ogg Vorbis Video</_comment>
    <glob pattern="*.ogv"/>
    <sub-class-of type="application/ogg"/>
  </mime-type>

  <mime-type type="video/daala">
    <_comment>Ogg Daala Video</_comment>
    <alias type="video/x-daala"/>
    <magic priority="60">
      <!-- Assumes Video stream comes before Audio, may not always -->
      <match value="OggS\000.......................\x80daala" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/theora">
    <_comment>Ogg Theora Video</_comment>
    <alias type="video/x-theora"/>
    <magic priority="60">
      <!-- Assumes Video stream comes before Audio, may not always -->
      <match value="OggS\000.......................\x80theora" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/x-dirac">
    <_comment>Ogg Packaged Dirac Video</_comment>
    <magic priority="60">
      <match value="OggS\000.......................BBCD" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFF"
             offset="0"/>
    </magic>
    <glob pattern="*.drc"/>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/x-ogm">
    <_comment>Ogg Packaged OGM Video</_comment>
    <magic priority="60">
      <!-- Assumes Video stream comes before Audio, may not always -->
      <match value="OggS\000.......................video" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFFFF"
             offset="0"/>
    </magic>
    <glob pattern="*.ogm"/>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/x-ogguvs">
    <_comment>Ogg Packaged Raw UVS Video</_comment>
    <alias type="video/x-ogg-uvs"/>
    <magic priority="60">
      <match value="OggS\000.......................UVS " type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/x-oggyuv">
    <_comment>Ogg Packaged Raw YUV Video</_comment>
    <alias type="video/x-ogg-yuv"/>
    <magic priority="60">
      <match value="OggS\000.......................\001YUV" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/x-oggrgb">
    <_comment>Ogg Packaged Raw RGB Video</_comment>
    <alias type="video/x-ogg-rgb"/>
    <magic priority="60">
      <match value="OggS\000.......................\001RGB" type="string"
             mask="0xFFFFFFFF00000000000000000000000000000000000000000000000000FFFFFFFF"
             offset="0"/>
    </magic>
    <sub-class-of type="video/ogg"/>
  </mime-type>

  <mime-type type="video/parityfec"/>
  <mime-type type="video/pointer"/>

  <mime-type type="video/quicktime">
    <_comment>QuickTime Video</_comment>
    <magic priority="50">
      <!-- Check for common starting Atoms. These will have a 4 byte -->
      <!--  size before them. They almost always have 0x00 after, either -->
      <!--  the length of a child atom, or start of data -->
      <match value="moov\000" type="string" offset="4"/>
      <match value="mdat\000" type="string" offset="4"/>
      <match value="free\000" type="string" offset="4"/>
      <match value="skip\000" type="string" offset="4"/>
      <match value="pnot\000" type="string" offset="4"/>
      <!-- General Atom match, specific ftypXXX ones present for subtypes -->
      <match value="ftyp" type="string" offset="4"/>
      <!-- Common starting Atoms of fixed size -->
      <match value="\x00\x00\x00\x08wide" type="string" offset="0"/>
    </magic>
    <glob pattern="*.qt"/>
    <glob pattern="*.mov"/>
    <sub-class-of type="application/quicktime" />
  </mime-type>

  <mime-type type="video/raw"/>
  <mime-type type="video/rtp-enc-aescm128"/>
  <mime-type type="video/rtx"/>
  <mime-type type="video/smpte292m"/>
  <mime-type type="video/ulpfec"/>
  <mime-type type="video/vc1"/>
  <mime-type type="video/vnd.cctv"/>
  <mime-type type="video/vnd.dlna.mpeg-tts"/>
  <mime-type type="video/vnd.fvt">
    <glob pattern="*.fvt"/>
  </mime-type>
  <mime-type type="video/vnd.hns.video"/>
  <mime-type type="video/vnd.iptvforum.1dparityfec-1010"/>
  <mime-type type="video/vnd.iptvforum.1dparityfec-2005"/>
  <mime-type type="video/vnd.iptvforum.2dparityfec-1010"/>
  <mime-type type="video/vnd.iptvforum.2dparityfec-2005"/>
  <mime-type type="video/vnd.iptvforum.ttsavc"/>
  <mime-type type="video/vnd.iptvforum.ttsmpeg2"/>
  <mime-type type="video/vnd.motorola.video"/>
  <mime-type type="video/vnd.motorola.videop"/>
  <mime-type type="video/vnd.mpegurl">
    <glob pattern="*.mxu"/>
    <glob pattern="*.m4u"/>
  </mime-type>
  <mime-type type="video/vnd.ms-playready.media.pyv">
    <glob pattern="*.pyv"/>
  </mime-type>
  <mime-type type="video/vnd.nokia.interleaved-multimedia"/>
  <mime-type type="video/vnd.nokia.videovoip"/>
  <mime-type type="video/vnd.objectvideo"/>
  <mime-type type="video/vnd.sealed.mpeg1"/>
  <mime-type type="video/vnd.sealed.mpeg4"/>
  <mime-type type="video/vnd.sealed.swf"/>
  <mime-type type="video/vnd.sealedmedia.softseal.mov"/>
  <mime-type type="video/vnd.vivo">
    <glob pattern="*.viv"/>
  </mime-type>
  <mime-type type="video/x-f4v">
    <glob pattern="*.f4v"/>
  </mime-type>

  <mime-type type="video/x-flc">
    <glob pattern="*.flc"/>
  </mime-type>

  <mime-type type="video/x-fli">
    <glob pattern="*.fli"/>
  </mime-type>

  <mime-type type="video/x-flv">
    <magic priority="50">
      <match value="FLV" type="string" offset="0"/>
    </magic>
    <glob pattern="*.flv"/>
  </mime-type>

  <mime-type type="video/x-jng">
    <magic priority="50">
      <match value="\x8bJNG" type="string" offset="0"/>
    </magic>
    <glob pattern="*.jng"/>
  </mime-type>

  <mime-type type="video/x-m4v">
    <magic priority="60">
      <match value="ftypM4V " type="string" offset="4"/>
      <match value="ftypM4VH" type="string" offset="4"/>
      <match value="ftypM4VP" type="string" offset="4"/>
    </magic>
    <glob pattern="*.m4v"/>
    <sub-class-of type="video/mp4" />
  </mime-type>

  <mime-type type="video/x-mng">
    <magic priority="50">
      <match value="\x8aMNG" type="string" offset="0"/>
    </magic>
    <glob pattern="*.mng"/>
  </mime-type>

  <mime-type type="video/x-ms-asf">
    <glob pattern="*.asf"/>
    <magic>
       <match value="0x3026b275" type="big32" offset="0" />
    </magic>
  </mime-type>
  <mime-type type="application/x-ms-asx">
    <_comment>Windows Media Metafile</_comment>
    <glob pattern="*.asx"/>
    <root-XML localName="asx"/>
    <root-XML localName="ASX"/>
    <sub-class-of type="application/xml"/>
  </mime-type>
  <mime-type type="video/x-ms-wm">
    <glob pattern="*.wm"/>
  </mime-type>
  <mime-type type="video/x-ms-wmv">
    <sub-class-of type="video/x-ms-asf" />
    <glob pattern="*.wmv"/>
    <magic priority="60">
       <match value="Windows Media Video" type="unicodeLE" offset="0:8192" />
       <match value="VC-1 Advanced Profile" type="unicodeLE" offset="0:8192" />
    </magic>
  </mime-type>
  <mime-type type="video/x-ms-wmx">
    <glob pattern="*.wmx"/>
  </mime-type>
  <mime-type type="video/x-ms-wvx">
    <glob pattern="*.wvx"/>
  </mime-type>

  <mime-type type="video/x-msvideo">
    <_comment>Audio Video Interleave File</_comment>
    <alias type="video/avi"/>
    <alias type="video/msvideo"/>
    <magic priority="50">
      <match value="RIFF....AVI " type="string" offset="0"
             mask="0xFFFFFFFF00000000FFFFFFFF"/>
      <match offset="8" type="string" value="\x41\x56\x49\x20"/>
    </magic>
    <glob pattern="*.avi"/>
  </mime-type>

  <mime-type type="video/x-sgi-movie">
    <magic priority="50">
      <match value="MOVI" type="string" offset="0"/>
    </magic>
    <glob pattern="*.movie"/>
  </mime-type>

  <mime-type type="application/x-matroska">
    <_comment>Matroska Media Container</_comment>
    <!-- Common magic across all Matroska varients -->
    <!-- For full detection, we need a custom Detector, see TIKA-1180 -->
    <magic priority="40">
      <match value="0x1A45DFA3" type="string" offset="0" />
    </magic>
  </mime-type>

  <mime-type type="video/x-matroska">
    <sub-class-of type="application/x-matroska"/>
    <glob pattern="*.mkv" />
    <!-- Note: The magic value below isn't present in all MKV files -->
    <magic priority="50">
      <match value="0x1A45DFA3934282886D6174726F736B61" type="string" offset="0" />
    </magic>
  </mime-type>
  <mime-type type="audio/x-matroska">
    <sub-class-of type="application/x-matroska"/>
    <glob pattern="*.mka" />
  </mime-type>

  <mime-type type="video/webm">
    <sub-class-of type="application/x-matroska"/>
    <glob pattern="*.webm" />
  </mime-type>

  <mime-type type="x-conference/x-cooltalk">
    <_comment>Cooltalk Audio</_comment>
    <glob pattern="*.ice"/>
  </mime-type>

  <mime-type type="application/x-fictionbook+xml">
      <_comment>FictionBook document</_comment>
      <sub-class-of type="application/xml"/>
      <root-XML namespaceURI="http://www.gribuser.ru/xml/fictionbook/2.0" localName="FictionBook"/>
      <glob pattern="*.fb2"/>
  </mime-type>

    <mime-type type="text/x-asciidoc">
    <_comment>Asciidoc source code</_comment>
    <glob pattern="*.asciidoc"/>
    <glob pattern="*.adoc"/>
    <glob pattern="*.ad"/>
    <glob pattern="*.ad.txt"/>
    <glob pattern="*.adoc.txt"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-d">
    <_comment>D source code</_comment>
    <glob pattern="*.d"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-haml">
    <_comment>HAML source code</_comment>
    <glob pattern="*.haml"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-haxe">
    <_comment>Haxe source code</_comment>
    <glob pattern="*.hx"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

  <mime-type type="text/x-rsrc">
    <_comment>R source code</_comment>
    <glob pattern="*.r"/>
    <sub-class-of type="text/plain"/>
  </mime-type>

</mime-info>
