The following code is used to parse openstreetmap XML or PBF files in a SAX parser like callback way. Sometimes APIs change... they break your code but things get easier for the rest of us. I'm sorry ...