example xml parse code based on expat.