Use XMLStreamException for reporting parsing errors