Change XML output file's version to 1.1
See original GitHub issueWhat version are you using? 4.7.1 - But this applies to all versions
What did you do?
- Have a file with an object like this:
var foo = { "\b":42 };
- Run eslint with the
-f checkstyle
flag
What happened?
One of the errors is:
<error line="1" column="18" severity="error" message="Missing space before value for key ''. (key-spacing)" source="eslint.rules.key-spacing" />
This XML is valid for version 1.1, but the XML header has the version set to 1.0, in which some character references like 
are not valid.
What did you expect to happen?
The XML version on the output file should be 1.1
I think this might be related to https://github.com/eslint/eslint/issues/6673.
Issue Analytics
- State:
- Created 6 years ago
- Comments:23 (22 by maintainers)
Top Results From Across the Web
Change XML Version from 1.0 to 1.1 with ElementTree?
I'm using the Element tree library to modify an xml file and then convert the element tree back to xml ...
Read more >Processing XML 1.1 documents with XML Schema 1.0 ... - W3C
This change will fix the B and C results by using the XML 1.1 definition of Name. For processors which don't depend on...
Read more >Modify the XML version in the file exported via ex... - ServiceNow
Hi All, We are exporting a file through export set and transferring it to mid server location. There is a scheduled data export...
Read more >How dose BW handle XML version 1.1. - TIBCO Support
Resolution: BW can read and parse XML 1.1 files, but it will handle and process it in XML 1.0 format. When encountering invalid...
Read more >XML Schema 1.1 - Oxygen XML Editor
To change the default XML Schema version, open the Preferences dialog box (Options > Preferences) and go to XML > XML Parser >...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eslint/eslint-tsc After having a look at this, we framed the discussion around a non-existent
xml
formatter. The actual formatters that use xml output arecheckstyle
,jslint-xml
andjunit
. I am a bit more reluctant to version these according to xml version. I propose we revisit the decision taking this into account.I’d vote to add a new formatter and leave the old one as is.