Skip to content

Conversation

@otsch
Copy link
Member

@otsch otsch commented Apr 4, 2025

As sometimes, XML parsing errors occur because of characters that aren't valid within XML documents, the XmlDocument class now catches exceptions, tries to find and replace invalid characters (with transliterates or HTML entities) and retries parsing the document. If installed, it tries to find transliterates for characters, using the voku/portable-ascii composer package. Added the package to the suggest section in the composer.json file.

As sometimes, XML parsing errors occur because of characters that aren't
valid within XML documents, the `XmlDocument` class now catches
exceptions, tries to find and replace invalid characters (with
transliterates or HTML entities) and retries parsing the document.
If installed, it tries to find transliterates for characters, using the
`voku/portable-ascii` composer package. Added the package to the
`suggest` section in the composer.json file.
@otsch otsch merged commit 60a1fe8 into main Apr 4, 2025
6 checks passed
@otsch otsch deleted the bugfix/xml-invalid-characters branch April 4, 2025 22:01
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.

2 participants