Hi Nick,

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>

But if I understand, Tika parser (or detector) will check that the type-mime 
will be type of "application/xml" and return "application/xml-vast" thanks to 
the root? or it will check that the mime-type will be application/xml-vast?

Thanks a lot for your time.

Yoyoma.


>You should add acustom mimetype:
>http://tika.apache.org/1.12/parser_guide.html#Add_your_MIME-Type
>Have that extend application/xml and define the root xml element your 
>format requires. If you look at the main tika mime types file, there's a 
>few good examples almost at the top

>Nick

Reply via email to