Dim xmlfile As String = File.ReadString(File.DirApp, "example.xml")
Dim xm As Xml2Map
xm.Initialize
Dim Parsed As Map = xm.Parse(xmlfile)
'Log(Parsed.As(JSON).ToString)
Dim root As Map = Parsed.Get("root")
Dim config As List
config = GetElements(root, "config")
Log("lst size = " & config.Size)
File.WriteString(File.DirApp, "example.map", root.As(JSON).ToString)
Dim mapfile As String = File.ReadString(File.DirApp, "example.map")
'Log(mapfile)
config = GetElements(mapfile.As(JSON).ToMap, "config")
Log("lst size = " & config.Size)