Closed danswiser closed 5 years ago
@danswiser the best way to look at this library, is similar to using functional programming.
The best way to go about this problem is to look at this similar to writing a reduce()
function.
sabre/xml doesn't do any mutations in the DOM, you basically can simultaneously read the entire document and also write the new version of your document in 1 pass.
That's good enough for me.
Thanks.
Please excuse any of my XML terminology, I don't typically use XML.
I have multiple branches where the same element exists. Each branch is holding different information about elements. I'd like to merge them together in the simplest way possible.
Here's a snippet of my XML:
What I'm trying to do is combine both elements into a single element (matched by the "id" attribute"). Is there anything within this project that would help me or should I just focus on merging the data before/after this package?