private String convertToElementName(String attributeName){
  return attributeName.replace(' ','_');
}

private String convertToElementName ( String attributeName ) { return attributeName . replace ( ' ' , '_' ) ; }
converts an attribute name ( with space ) to an xml element name ( with underscores ) .
