code: public String asXML(ResourceBundle rb)
     {
        StringBuilder sb = new StringBuilder();
  
        if (failures != null)
        {
           // PRE-XML
  
           int i = 0;
           for (Failure failure : failures)
           {
              Failure f = failure;
  
              sb = sb.append(f.asXML(rb));
  
              if (i < failures.size() - 1)
                 sb = sb.append(NEW_LINE);
              i++;
           }
  
           // POST-XML
        }
  
        return sb.toString();
     }
docs: As XML
  @param rb The resource bundle
  @return The XML representation