Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.11
-
None
-
None
Description
A file containing this xml:
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
is detected as text/html instead of application/xml (or at worst text/plain) when using this code sample:
Tika tika = new Tika(); System.out.println(tika.detect(new File("src/test/resources/file.xml"))));
Attachments
Issue Links
- is duplicated by
-
TIKA-2494 Apache Tika Detect issue
- Open