Add transformTagName to the XMLBuilder
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- tooling
Research direction
Start at the XMLBuilder entry point and compare its tag-name handling with XMLParser's existing transformTagName option. Add the builder option so the example uppercases child tags, then verify the generated XML matches the documented output.
Written by the indexing model from the issue text.
Description
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?
- Yes
- No
- Dominant language
- JavaScript
- Stars
- 22
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NaturalIntelligence/fast-xml-builder
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
`preserveOrder: true` with `format: true` formats mixed content wrongly and adds whitespace to content that ends with `>`Possibly taken @neumaennl claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
`XMLBuilder` object should be exported as a named export, not just the typePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NaturalIntelligence/fast-xml-builder#25 · 1 comment ·
-
sanitizeName not applied to names inside stopNodes (quote injection / tag break-out bypass)Possibly taken @hicay claimed this 5 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
NaturalIntelligence/fast-xml-builder#34 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 54/100
All issues in NaturalIntelligence/fast-xml-builder
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Extended search drops any query term that contains a line breakPossibly taken @goranai claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
area:mcp
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day