Change measure to take an xml node