Fix XMLReader:readOuterXML()

Should close #2056