Skip to content

Centralize and secure DocumentBuilder creation.#1082

Open
langfr wants to merge 1 commit intoZUGFeRD:masterfrom
langfr:feature/xmlTools
Open

Centralize and secure DocumentBuilder creation.#1082
langfr wants to merge 1 commit intoZUGFeRD:masterfrom
langfr:feature/xmlTools

Conversation

@langfr
Copy link
Copy Markdown
Contributor

@langfr langfr commented Mar 31, 2026

Enhanced the DocumentBuilder creation, surround setting of Features and Attributes with try / catch to avoid problems when using e.g. Apache Xerces.
Do the same for Schema Validator and XSLT Transformer.

Use XMLTools on all occurrences of dbf.newDocumentBuilder(), schema.newValidator() and new net.sf.saxon.TransformerFactoryImpl().

Related to #1078 and #972 and ...

Replaces #845.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant