List<DomElement> (final DomElement element) { final List<DomElement> children = new ArrayList<>(); element.acceptChildren(new DomElementVisitor() { @Override public void visitDomElement(final DomElement element) { if (!"attr".equals(element.getXmlElementName())) { children.add(element); } } }); return children; }