question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change XML output file's version to 1.1

See original GitHub issue

What version are you using? 4.7.1 - But this applies to all versions

What did you do?

  1. Have a file with an object like this: var foo = { "\b":42 };
  2. 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 &apos;&#8;&apos;. (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 &#8; 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:closed
  • Created 6 years ago
  • Comments:23 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
albertocommented, Apr 15, 2018

@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 are checkstyle, jslint-xml and junit. I am a bit more reluctant to version these according to xml version. I propose we revisit the decision taking this into account.

1reaction
albertocommented, Apr 2, 2018

I’d vote to add a new formatter and leave the old one as is.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found