[jira] [Commented] (CONNECTORS-1656) HTML extractor produces invalid XML

2020-10-20 Thread Karl Wright (Jira)


[ 
https://issues.apache.org/jira/browse/CONNECTORS-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17217609#comment-17217609
 ] 

Karl Wright commented on CONNECTORS-1656:
-

The issue, in my opinion, is that the document produced identifies itself as 
XML when it is not.  The first line therefore may be all you need to change to 
get Tika to not blow up on badly formed XML that comes from HTML.

If you want to research this, you might be able to find out what Tika accepts 
and what it does not pretty readily with some offline experimentation.



> HTML extractor produces invalid XML
> ---
>
> Key: CONNECTORS-1656
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1656
> Project: ManifoldCF
>  Issue Type: Bug
>  Components: HTML extractor
>Affects Versions: ManifoldCF 2.17
>Reporter: Julien Massiera
>Assignee: Karl Wright
>Priority: Major
>
> The HTML extractor connector produces valid HTML doc (when the 'Strip HTML' 
> option is disabled) but invalid XML (some tags like img do not have closing 
> tag), and in some cases it is problematic. For example, when Tika is used 
> behind, it processes the document as an XML document and most of the time a 
> parse exception is raised.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Assigned] (CONNECTORS-1656) HTML extractor produces invalid XML

2020-10-20 Thread Karl Wright (Jira)


 [ 
https://issues.apache.org/jira/browse/CONNECTORS-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Wright reassigned CONNECTORS-1656:
---

Assignee: Karl Wright

> HTML extractor produces invalid XML
> ---
>
> Key: CONNECTORS-1656
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1656
> Project: ManifoldCF
>  Issue Type: Bug
>  Components: HTML extractor
>Affects Versions: ManifoldCF 2.17
>Reporter: Julien Massiera
>Assignee: Karl Wright
>Priority: Major
>
> The HTML extractor connector produces valid HTML doc (when the 'Strip HTML' 
> option is disabled) but invalid XML (some tags like img do not have closing 
> tag), and in some cases it is problematic. For example, when Tika is used 
> behind, it processes the document as an XML document and most of the time a 
> parse exception is raised.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (CONNECTORS-1656) HTML extractor produces invalid XML

2020-10-20 Thread Julien Massiera (Jira)
Julien Massiera created CONNECTORS-1656:
---

 Summary: HTML extractor produces invalid XML
 Key: CONNECTORS-1656
 URL: https://issues.apache.org/jira/browse/CONNECTORS-1656
 Project: ManifoldCF
  Issue Type: Bug
  Components: HTML extractor
Affects Versions: ManifoldCF 2.17
Reporter: Julien Massiera


The HTML extractor connector produces valid HTML doc (when the 'Strip HTML' 
option is disabled) but invalid XML (some tags like img do not have closing 
tag), and in some cases it is problematic. For example, when Tika is used 
behind, it processes the document as an XML document and most of the time a 
parse exception is raised.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


Re: HTML extractor produces invalid XML

2020-10-20 Thread Karl Wright
I've added the component as requested.  As for the advice, I suggest you
create a ticket and we can discuss there.
Karl


On Tue, Oct 20, 2020 at 6:24 AM  wrote:

> Hi,
>
>
>
> I noticed a problem with the HTML extractor connector. It produces valid
> HTML doc (when the 'Strip HTML' option is disabled) but invalid XML (some
> tags like img do not have closing tag), and in some cases it is
> problematic.
> For example, when Tika is used behind, it processes the document as an XML
> document and most of the time a parse exception is raised and the document
> content is lost.
>
>
>
> I would like to create a ticket for this issue and I would be glad to
> propose a patch and do the commit myself but I need two things:
>
> 1/ Create The "HTML extractor" component in Jira
>
>
>
> 2/ Your advise concerning the way to resolve the issue: Either we configure
> this connector to always output XML valid document (when the "Strip HTML"
> option is disabled), or we add a new option in the configuration to enforce
> XML output when enabled ?
>
>
>
> Regards,
> Julien
>
>


HTML extractor produces invalid XML

2020-10-20 Thread julien.massiera
Hi,

 

I noticed a problem with the HTML extractor connector. It produces valid
HTML doc (when the 'Strip HTML' option is disabled) but invalid XML (some
tags like img do not have closing tag), and in some cases it is problematic.
For example, when Tika is used behind, it processes the document as an XML
document and most of the time a parse exception is raised and the document
content is lost.

 

I would like to create a ticket for this issue and I would be glad to
propose a patch and do the commit myself but I need two things: 

1/ Create The "HTML extractor" component in Jira

 

2/ Your advise concerning the way to resolve the issue: Either we configure
this connector to always output XML valid document (when the "Strip HTML"
option is disabled), or we add a new option in the configuration to enforce
XML output when enabled ? 

 

Regards,
Julien