Fixed an issue where XPath resulting with Strings or Attributes would not work.