Added XML parsing