Closed MHaz42 closed 4 months ago
If an attribute is in a oneListGroup it isn't parsed as an attribute and simply disappear.
const input = { main: [ { _attr: { ID: "" } }, { sub: { _attr: { value: "" } } }, { sub: { _attr: { value: "" } } } ] };
const builder = new XMLBuilder({ format: true, attributesGroupName: '_attr', attributeNamePrefix: '', oneListGroup: true, suppressEmptyNode: true, suppressBooleanAttributes: false, ignoreAttributes: false, }); builder.build(input);
<main> <sub value=""/> <sub value=""/> </main>
<main ID=""> <sub value=""/> <sub value=""/> </main>
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
Description
If an attribute is in a oneListGroup it isn't parsed as an attribute and simply disappear.
Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.