Code example for XmlSerializer

Methods: attributeendTagstartTag

0
  } 
 
  private void serializeSystemGroup(GroupEntry entry, XmlSerializer serializer) throws IOException {
    final String systemGroup = entry.getSystemGroup();
    if (!StringUtils.isEmpty(systemGroup)) {
      serializer.startTag(null /* ns */, "systemGroup");
      serializer.attribute(null /* ns */, "id", systemGroup);
      serializer.endTag(null /* ns */, "systemGroup");
    } 
  } 
} 
Experience pair programming with AI  Get Codota for Java