Common handlers for parsing XML.