Re: XML Parser with type recognition

2016-05-11 Thread plugman
your help. Yoyoma. - Mail original - De: plug...@free.fr À: user@tika.apache.org Envoyé: Mercredi 11 Mai 2016 21:53:14 Objet: Re: XML Parser with type recognition Already tested, but doesn't work, I have again application/xml content-type Yoyoma.

Re: XML Parser with type recognition

2016-05-11 Thread plugman
Already tested, but doesn't work, I have again application/xml content-type Yoyoma. - Mail original - De: "Nick Burch" <apa...@gagravarr.org> À: user@tika.apache.org Envoyé: Mercredi 11 Mai 2016 21:14:55 Objet: Re: XML Parser with type recognition On Wed, 11 May 2016,

Re: XML Parser with type recognition

2016-05-11 Thread Nick Burch
On Wed, 11 May 2016, plug...@free.fr wrote: If you can take a look at my little gist example https://gist.github.com/anonymous/3506db4367040ea8f381c5b7b435b3f9 it will be very helpful. The localName parameter is case sensitive. Your sample file starts with Nick

Re: XML Parser with type recognition

2016-05-11 Thread plugman
appreciate it. Yoyoma. - Mail original - De: "Nick Burch" <apa...@gagravarr.org> À: user@tika.apache.org Envoyé: Mercredi 11 Mai 2016 19:19:03 Objet: Re: XML Parser with type recognition On Wed, 11 May 2016, plug...@free.fr wrote: > Ok if I understand I can create a

Re: XML Parser with type recognition

2016-05-11 Thread Nick Burch
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: http://www.w3.org/2001/XMLSchema-instance"/> Almost - you can't set that glob as it's already claimed. Otherwise, assuming that is the

Re: XML Parser with type recognition

2016-05-11 Thread plugman
Hi Nick, Ok if I understand I can create a specific mime type into tika-mimetypes.xml resource file like this: http://www.w3.org/2001/XMLSchema-instance"/> But if I understand, Tika parser (or detector) will check that the type-mime will be type of "application/xml" and return

Re: XML Parser with type recognition

2016-05-10 Thread Nick Burch
On Tue, 10 May 2016, plug...@free.fr wrote: But now I'm facing of detecting some XML files but only some specifics, I can't detect only "application/xml", I need to detect which type of XML is it (in my case http://www.iab.com/guidelines/digital-video-ad-serving-template-vast-3-0/). But the

XML Parser with type recognition

2016-05-10 Thread plugman
Hi, I'm using Apache Tika to detect if some files uploaded by my team are in the mime type scope that I've defined. But now I'm facing of detecting some XML files but only some specifics, I can't detect only "application/xml", I need to detect which type of XML is it (in my case