edits xmlparser, adds function resetdata()
fixes some conflicts