Fix check_xml that ignored attributes.