Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat: add supressEmptyNodeWithoutAttributes option #237
Conversation
0c9e587
to
5be611e
guardrails
bot
commented
Mar 30, 2020
Vulnerable Libraries (2)
More info on how to fix Vulnerable Libraries in Javascript. |
guardrails
bot
commented
Mar 30, 2020
•
5be611e
to
ed63f94
|
What output do you get when you set |
|
If I set JSON:
XML:
But I need the XML to be like:
To get the result above, I have to set |
|
Thanks. Now it is more clear to me. However, the option name is still confusing |
|
Yes, thinking about it now, it's confuse. Sorry about that. But I didn't think a better name for it. What do you think if I create an Example:
In that way, I think there will be no doubt about the option's name meaning, and it will work for what I need. |
|
What do you think about
However, I strongly feel that if |
iteixeira commentedMar 30, 2020
•
edited
Purpose / Goal
I needed to convert a JSON attribute with an empty value to a not self closing XML tag:
Input:
Expected output:
Actual output:
Benchmark results
Results of the
node benchmark\perfTest3.jscommand, as requested at CONTRIBUTING.md:Before changes:
Running Suite: XML Parser benchmark
validation : 22506.73362810279 requests/second
xml to json : 23379.649527832113 requests/second
xml to json + json string : 20339.19984773564 requests/second
xml to json string : 3201.794682753688 requests/second
xml2js : 5631.943439669823 requests/second
After changes:
Running Suite: XML Parser benchmark
validation : 22660.97418380873 requests/second
xml to json : 22143.350711227682 requests/second
xml to json + json string : 19650.172211612786 requests/second
xml to json string : 3152.241109975055 requests/second
xml2js : 5766.8773762699975 requests/second
Type
Please mention the type of PR