fix: we now check for parsing errors in XML