getXmlWithClass static method

Iterable<XmlElement> getXmlWithClass(
  1. XmlDocument root,
  2. String classId
)

Implementation

static Iterable<XmlElement> getXmlWithClass(XmlDocument root, String classId) {
  return root.descendants
      .whereType<XmlElement>()
      .where((p) => p.getAttribute('class') == classId)
      .toList();
}