### Sample creating XML

This example
`Sub XMLCreateNames
Dim x As XMLBuilder
x = x.create("Names").attribute("xmlns", "List of Names")
x = x.element("Name1").element("ID").text("1").up().element("Name").text("Name 1").up().up()
x = x.element("Name2").element("ID").text("2").up().element("Name").text("Name 2").up().up()
Dim props As Map
props.Initialize
props.Put("{http://xml.apache.org/xslt}indent-amount", "2")
props.Put("indent", "yes")
Log(x.asString2(props))
End Sub`
creates as output:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Names xmlns="List of Names">
<Name1>
<ID>1</ID>
<Name>Name 1</Name>
</Name1>
<Name2>
<ID>2</ID>
<Name>Name 2</Name>
</Name2>
</Names>
The trick is using up().up() to add nodes.

Changed: , Category: XMLBuilder, File: T6C286M2144.htm, ID: 2144