Get XPath fn from metadata XML