[ 
https://issues.apache.org/jira/browse/TIKA-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15850182#comment-15850182
 ] 

Tim Allison commented on TIKA-2242:
-----------------------------------

Thank you for re-opening this.  The second document shows we need some 
non-trivial fixes.  We're mapping, {{note}}, {{annotation}} and {{notes}} to 
{{<div>}}.  However, as your document shows, these can occur within a {{<p/>}} 
and contain their own {{<p/>}}.  We'll want to avoid putting a {{<p/>}} inside 
a {{<div/>}} and a {{<p/>}} inside a {{<p/>}}.

For example:
{noformat}
<p>text<div><p>this is an annotation</p></div></p>.
{noformat}

Should we map {{note}}, {{annotation}} and {{notes}} to {{<span/>}} instead of 
{{<div/>}}?  Or, should we close the {{<p>}} when we hit an {{annotation}} and 
friends?

> opendocument parsing produces malformed xml
> -------------------------------------------
>
>                 Key: TIKA-2242
>                 URL: https://issues.apache.org/jira/browse/TIKA-2242
>             Project: Tika
>          Issue Type: Bug
>          Components: handler, parser
>    Affects Versions: 1.13, 1.14
>            Reporter: Jan Van Raemdonck
>            Assignee: Tim Allison
>             Fix For: 2.0, 1.15
>
>         Attachments: 2017-01-02-16B833-16B833VANCAUTEREN.odt, 
> 2017-02-01-15B96Ghijsens-17B96GHIJSENS.odt
>
>
> For some odt documents, a malformed xml is produced when parsing. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to