Fixed a bug in the RSS parser

This morning, OTempo was failing at least with the Santiago station. It was a bug in the XML SAX parser. I had already parsed a lot of XML documents before with the DOM API, but I have to confess that this was my first SAX parser. On Android, this model is recommended over DOM, because it is more memory efficient. I forgot that SAX can split node text contents, and this caused some unexpected null pointers.

When looking for more information about XML on Android, I have found this article from IBM, that simplifies even more the RSS parsing:

Of course, you have a new version in the market (1.4) with this bug solved. Download it here, as always:


Acerca de Rubén L.

Software Engineer
Esta entrada fue publicada en android, English y etiquetada , , , . Guarda el enlace permanente.


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s