FasterXML / FasterXML/woodstox

Force XML version 1.1 override for parser

Open
#28 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
259
Forks
90
Avg merge
16h 52m
Merged PRs (30d)
2

Description

Hello,
I have a XML file that has a prolog tagging the document to be in `version=1.0`, even though it contains some entities (namely ``), which do not conform to 1.0, so I get an exception when parsing the file as expected.

Once I manually change the version in the prolog to `1.1`, the file is parsed without errors.

My question is whether there's a way to force the parser to discard the prolog information to somehow always use XML 1.1 semantics, without the need to alter the original file. I'm using the SAX API.

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.