Usage of expat library for XML parsing