Add rule-of-five functions to XMLParser.