support Element-type input for XPath evaluation