Sub makexml(listofmaps As List)
Dim x As XMLBuilder
x = x.create("Server").attribute("name", "Filezilla")
For p = 0 To listofmaps.size-1
Dim infomap As Map = listofmaps.Get(p)
x = x.element("File") _
.element("LocalFile") _
.text(infomap.Get("LocalFile")) _
.up() _
.element("RemoteFile") _
.text(infomap.Get("RemoteFile")) _
.up() _
.element("RemotePath") _
.text(infomap.Get("RemotePath")) _
.up() _
.element("Flags") _
.text(infomap.Get("Flags")) _
.up() _
.element("Size") _
.text(infomap.Get("Size")) _
.up() _
.up()
Next
Dim props As Map
props.Initialize
props.Put("{http://xml.apache.org/xslt}indent-amount", "4")
props.Put("indent", "yes")
' Log(x.asString2(props))
File.WriteString("c:\temp", "filezilla.xml", x.asString2(props))
Log("Finished")
End Sub