Format Tree as XML (vuo.tree.format.xml)

Turns a tree (including descendants) into XML-formatted text.

The tree’s name, attributes, and content become the XML root element’s name, attributes, and content. The tree’s children become the XML root element’s child elements.

If a tree or any of its descendants lack names, names are added, like this:

<document>Mandarin</document>
<document>
   <item>1992</item>
   <item>1994</item>
   <item>1998</item>
   <item>2001</item>
</document>

Keywords: convert, export, save, serialize, text, write


Example composition:


Back to vuo.tree node set documentation.