String[] (Element element, final String tagName) { final List<Element> children = element.getChildren(tagName); List<String> filters = new ArrayList<>(); for (Element child : children) { filters.add(child.getValue()); } return filters.isEmpty() ? null : ArrayUtilRt.toStringArray(filters); }