siblings property

List<XmlNode> siblings

Returns a List of the siblings of this node. Throws an XmlParentException if the node has no parent.

Implementation

List<XmlNode> get siblings {
  final parent = XmlParentException.checkParent(this);
  return this is XmlAttribute ? parent.attributes : parent.children;
}