What would be a good way to fill data into a XML template?

Hi everyone,

I am trying to get some information from my geometry and output them into XML with a specific format. with predefine elements, attributes, etc.

I can out put general XML with Lunchbox, but I want to assign the tree, branches, and etc. into their specific elements/ attribute I define.

Don’t mind to do some scripting if that’s the best way around it, but using prue grasshopper would be perfer.

Any thoughts?

Many Thanks in advance!