Add common function

Function to parse xml by XPath