Stax parser dynamically changing xml version 1.0 to 1.1 in java
<p>I have an xml with version as 1.0 , with this version stax parser failing to parse the xml if the xml has control characters (&#24;,&#25; etc..). So when I googled it with xml version 1.1 we can avoid the parsing errors. But I want to change the xml version to 1.1 dynamically within the file. I don't to want to read the entire file and replace the version with 1.1 and writing new file which may lead to performance issues.</p>

<p>I just want to replace the version with 1.1 directly in existing file.</p>

<p>could you please help me out</p>
