private String convertToAttributeName(String localName){
  return localName.replace('_',' ');
}

private String convertToAttributeName ( String localName ) { return localName . replace ( '_' , ' ' ) ; }
converts an xml element local name ( with underscores ) to an attribute name ( with spaces ) .
