Using XPath to get string value, integer value and boolean value