Add transformTagName to the XMLBuilder
XMLParser has option transformTagName, which allows to mutate tag names on parsing. Similar option would be very useful for XMLBuilder too.
Example usecase:
const builder = new XMLBuilder({
arrayNodeName: 'book',
transformTagName: (tag) => tag.toUpperCase()
})
const xml = builder.build([{ author: 'Joe Doe', title: 'Great book'}]);
would produce:
<book>
<AUTHOR>Joe Doe</AUTHOR>
<TITLE>Great book</TITLE>
</book>
Would you like to work on this issue?
- [X] Yes
- [ ] No
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.
If I've not implemented it yet then yes it'll be a good enhancement
If I've not implemented it yet then yes it'll be a good enhancement
Do you want to work on this or shall I provide a PR?
Please go ahead with the PR. I would be busy with another repository for some time