Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support noValidation option from xmlbuilder1 #59

Closed
kellyselden opened this issue Oct 14, 2020 · 1 comment
Closed

Support noValidation option from xmlbuilder1 #59

kellyselden opened this issue Oct 14, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kellyselden
Copy link

I'm transforming an XML (JUnit) file, and it would be nice if the attributes matched. Right now this is what happens:

input:

<testsuite>
  <testcase name="foo > bar"/>
</testsuite>

output:

<testsuite>
  <testcase name="foo &gt; bar">
    <failure/>
  </testcase>
</testsuite>

I understand that the output is more correct, but it would be nice to match the option from xmlbuilder1 noValidation https://github.com/oozcitak/xmlbuilder-js/blob/e4ddc615b3668c63c63e627fb1b6fc078d586ba3/src/XMLStringifier.coffee#L164.

@kellyselden kellyselden added the enhancement New feature or request label Oct 14, 2020
@oozcitak
Copy link
Owner

The library applies the XMLSerializer interface as is. I want to keep the default implementation as close to the specs as possible. The option you require will be possible with custom serializers. Please watch the related issue: #47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants