fix xmltokenizer to handle bad xml