XmlStreamReader encoding regexp does not work anymore without version

2024-01-02 Thread Andreas Hubold
Hi, the regular expression for the encoding was changed in XmlStreamReader between 2.13.0 and 2.15.1. It now requires a version attribute in the XML declaration and does not work anymore with some real world files. For example, the encoding from the following example declaration is respect

Re: XmlStreamReader encoding regexp does not work anymore without version

2024-01-02 Thread Andreas Hubold
ory wrote: Hello Andrea, Please try git master or a 2.16.0-SNAPSHOT build (https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.16.0-SNAPSHOT) I fixed this today as reported inhttps://github.com/apache/commons-io/pull/550 TY! Gary On Tue, Jan 2, 2024 at 9:33 AM An

Re: XmlStreamReader encoding regexp does not work anymore without version

2024-01-03 Thread Andreas Hubold
, Jan 2, 2024, 11:03 AM Gary Gregory wrote: Ah, intersection, I'll look into it. Gary On Tue, Jan 2, 2024, 9:50 AM Andreas Hubold wrote: Hi Gary, right, but it is optional for external entities, see https://www.w3.org/TR/xml/#TextEntities And the examples inhttps://www.w3.org/TR/xm