Using XmlSax on a XML and I'm running into a rounding issue that I can't figure out.
XML snippet:
Using:
And in my log I see:
Amp_3 : 4.9
What am I clearly overlooking?
XML snippet:
B4X:
-<probe>
<name>Amp_3</name>
<value>4.3 </value>
<type>Amps</type>
</probe>
Using:
B4X:
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
If parser.Parents.IndexOf("probe") > -1 Then
If Name = "name" Then
ProbeName = Text.ToString
Else If ProbeName = "Amp_3" And Name = "value" Then
ProbeResult = Text.ToString
End If
End If
Log(ProbeName & " : " &(ProbeResult))
End Sub
And in my log I see:
Amp_3 : 4.9
What am I clearly overlooking?