redundent / kotlin-xml-builder

A lightweight type safe builder to build xml documents in Kotlin
Apache License 2.0
151 stars 17 forks source link

Suggestion: create addNodes method #59

Closed csmile2 closed 8 months ago

csmile2 commented 9 months ago

Suggestion

A function to add multiple nodes at a time would be useful. addNodes(parentNode: Node, nodes: List<Node>) in addition to singular (existing) addNode(node: Node).

Thanks

redundent commented 8 months ago

Hey @csmile2, Sorry for the delay in responding. I like the idea. I'll get that added in the next couple of days.

redundent commented 8 months ago

Took me longer than I'd hoped but version 1.9.1 is deployed. It includes new addElements methods. I renamed the existing addNode method to addElement since that's actually what it's doing.

csmile2 commented 8 months ago

Cool, looks like it's working as expected. Much appreciated!