firstXPath method

XmlElement? firstXPath(
  1. String xpath
)

Implementation

XmlElement? firstXPath(String xpath) {
  List<XmlElement> elements = _xpathString(xpath, onlyFirst: true);
  return (elements.isEmpty) ? null : elements.first;
}