Hello everybody,
Could anybody help me how can i get the the code value betwen " " ?
I receive different xml structure depends on the API status like :
Sub AppStart (Args() As String)
Dim s As String = $"<Res Code="0">
<Res Name="FM_Read_only" Value="0" Type="Status" Byte="0" Bit="0" />
</Res>"$
Dim parser As Xml2Map
parser.Initialize
Dim root As Map = parser.Parse(s)
Log(root)
Dim attributes As Map = root.Get("Res").As(Map).Get("Attributes")
Log(attributes.Get("Code"))
End Sub
Sub AppStart (Args() As String)
Dim s As String = $"<Res Code="0">
<Res Name="FM_Read_only" Value="0" Type="Status" Byte="0" Bit="0" />
</Res>"$
Dim parser As Xml2Map
parser.Initialize
Dim root As Map = parser.Parse(s)
Log(root)
Dim attributes As Map = root.Get("Res").As(Map).Get("Attributes")
Log(attributes.Get("Code"))
End Sub