Error in feching values from XML document

Error in feching values from XML document


I am using executeXPath to fetch values from XML document which is a Google MAP API. I am using the following command. The XPath builder shows correct result on execution. However the same value is not getting stored in Distance variable.  

The command is given below. I have also attached the screen shots showing the error and the XPath builder interface. The result is 17950 which should be stored in Distance. Using input.Distance also gives the same error.

Distance= input.Output.executeXPath("/DistanceMatrixResponse/row/element/distance/value/text()");

Distance is "Single Line" Field.

Can someone please help ?