[MRG] histfactory: add measurements_from_xml function