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

Andreas Lehmkühler edited comment on PDFBOX-4505 at 4/4/19 4:18 PM:
--------------------------------------------------------------------

In the trunk I've moved the class "XMLUtil" from 
"org.apache.pdfbox.pdmodel.fdf" to "org.apache.pdfbox.util" so that one can 
call "XMLUtil.parse" to parse an XML document. In 2.0 I simply copied the class 
and marked the old one as deprecated to ensure binary compatibility.

I've changed all relevant parts of the code so that always "XMLUtil.parse" is 
used to parse a XML document. This is limited to the pdfbox subproject. I 
didn't touch the xmpbox subproject as it wasn't needed


was (Author: lehmi):
In the trunk I've moved the class "XMLUtil" from 
"org.apache.pdfbox.pdmodel.fdf" to "org.apache.pdfbox.util" so that one can 
call "XMLUtil.parse" to parse an XML document. In 2.0 I simply copied the class 
and marked the old one as deprecated to ensure binry compatibility.

> DRY: unify the usage of a XML Parser
> ------------------------------------
>
>                 Key: PDFBOX-4505
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4505
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 2.0.14, 3.0.0 PDFBox
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 2.0.15, 3.0.0 PDFBox
>
>
> PDFBox uses the DocumentBuilderFactory to create a XML parser in several 
> places. We should simplifying the code by using XMLUtil for all of them.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to