Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2601

Invalid XHTML output for some WORD documents

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.17
    • Fix Version/s: None
    • Component/s: parser
    • Labels:
      None
    • Environment:

      Linked is a sample document with its corresponding output.

      Description

      In some WORD (.doc, .docx) documents the XHTML elements are not closed properly. This usually happens when there are link elements (<a>) as well as italic or bold elements (<b><i>).

       

      Fix should be done in https://github.com/apache/tika/blob/master/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java

        Attachments

        1. test.html
          3 kB
          Filip
        2. Test.doc
          60 kB
          Filip
        3. Invalid-XML.doc
          37 kB
          Funbit

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Fila Filip
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: