Private Sub ImportStates
Dim xm As Xml2Map
xm.Initialize
Dim ParsedData As Map = xm.Parse(File.ReadString(File.DirApp & "/" & mFolderDownload, "State.xml"))
Dim Auxdata As Map = ParsedData.Get("Auxdata")
Dim Header As Map = Auxdata.Get("Header")
Dim Fieldtype As List = Header.Get("Fieldtype")
For Each colFieldtype As Map In Fieldtype
Dim Attributes As Map = colFieldtype.Get("Attributes")
Dim hidden As String = Attributes.Get("hidden")
Dim name As String = Attributes.Get("name")
Dim Type As String = Attributes.Get("type")
Dim key As String = Attributes.Get("key")
Dim Text As String = colFieldtype.Get("Text")
Next
Dim Elements As Map = Auxdata.Get("Elements")
Dim Element As List = Elements.Get("Element")
For Each colElement As Map In Element
Dim Field As List = colElement.Get("Field")
For Each colField As Map In Field
Log("--------")
Dim Attributes As Map = colField.Get("Attributes")
Dim name As String = Attributes.Get("name")
Dim Text As String = colField.Get("Text")
Log("Name = " & name & " " & Text)
Next
Next
End Sub