public void outputExampleXML(PrintWriter writer,AttributeRule rule){
  writer.print(" " + rule.getName() + "=\"");
  if (rule.hasExample()) {
    writer.print(rule.getExample());
  }
 else {
    outputAttributeValue(writer,rule.getAttributeClass());
  }
  writer.print("\"");
}

public void outputExampleXML ( PrintWriter writer , AttributeRule rule ) { writer . print ( " " + rule . getName ( ) + "=\"" ) ; if ( rule . hasExample ( ) ) { writer . print ( rule . getExample ( ) ) ; } else { outputAttributeValue ( writer , rule . getAttributeClass ( ) ) ; } writer . print ( "\"" ) ; }
outputs an example of a rule , using the syntax information .
