On Wed, 11 May 2016, plug...@free.fr wrote:
Ok if I understand I can create a specific mime type into tika-mimetypes.xml resource file like this:

<mime-type type="application/xml-vast">
 <sub-class-of type="application/xml"/>
 <root-XML localName="vast" 
namespaceURI="http://www.w3.org/2001/XMLSchema-instance"/>
 <glob pattern="*.xml"/>
</mime-type>

Almost - you can't set that glob as it's already claimed. Otherwise, assuming that is the right namespace and name for your files, that's it. The xml root match will cause that mimetype to win over the default xml one

Nick

Reply via email to