private static String getValueOrContent(@NotNull Element element, String cname) {
    Element child = element.getChild(cname);
    if (child == null) return null;
    String attributeValue = child.getAttributeValue("value");
    if (attributeValue != null) return attributeValue;
    return child.getText();
  }
private static String getValueOrContent(@NotNull Element element, String cname)