pathJoin method

string pathJoin([
  1. string joiner = "."
])

Returns the path of the current node. The joiner is used to join the path segments.

Implementation

string pathJoin([string joiner = "."]) {
  string path = tagName;
  var p = parent;
  while (p != null) {
    if (p is XmlElement) {
      path = "${name.qualified}$joiner$path";
      p = p.parent;
    }
  }
  return path;
}