(I would note that the program runs fine until I add the reference so it's not my code... it appears to be a problem with the library itself)
I also just verified that the default template program compiles file and without any changes at all, it fails immediately to compile with the above error when you add xml2map and xmlsax libraries to the project (though it is only the xml2map library which causes the error).
Thanks. I'll give it a shot. I was getting some weird weird errors yesterday when I finally gave up on B4A but I'll add that library and give it another shot.
(I had strings that I was trying to apply to properties in a class and it was giving me numeric conversion errors even though no variables at all were numeric)
Private TempData As Map 'in process_globals
Private xm As Xml2Map 'in globals
If FirstTime Then 'in activity_create()
xm.Initialize
End If
Dim xmlstring As String = h.GetString 'and this code is in a sub that is called when a refresh button is pressed...
TempData = xm.Parse(xmlstring)
For Each tmpdata As Map In GetElements(TempData, "TemperatureData")
Log(tmpdata.Get("Temperature"))
Next
Nothing gets logged so I assume that nothing is being placed into TempData. The xmlstring is definitely populated with the above XML btw. That much I know.
Consider posting your working code snippet as future help for others.
Ps .. maybe investigate other options for initialising Xml2Map object , ie Starter Service, testing for IsInitialized etc.
Depending on your usage, it may created problems placing initialization in a If First Time condition.