I was wondering if there is already a good solution for this potential frequent problem. I only want to get elements with a specific name from an xml document, e.g. <name>
and get all the occurrences in the document and convert it into the json format, by keeping the individual positioning of the elements.
I currently do it by 'hand' by matching the element name and build the json format by iterating through the result tree. It makes a lot of work and I'm sure there is a solution out there for those kind of transformations. Does someone know a solution?