Half Working XML parsing