code: public String toXML()
      {
          RepositoryTags tags = RepositoryTags.getInstance();
          String eol = SystemUtils.LINE_SEPARATOR;
  
          //opening tag + attributes
          StringBuffer result = new StringBuffer( 1024 );
          result.append( "      <" );
          result.append( tags.getTagById( INDEX_DESCRIPTOR ) );
          result.append( " " );
  
          // index name
          result.append( tags.getAttribute( NAME, getName() ) );
          result.append( " " );
  
          // unique attribute
          result.append( tags.getAttribute( UNIQUE, "" + isUnique() ) );
          result.append( ">" );
          result.append( eol );
  
          // index columns
          for( int i = 0; i < indexColumns.size(); i++ )
          {
              String l_name = ( String ) indexColumns.elementAt( i );
              result.append( "                " );
              result.append( tags.getOpeningTagNonClosingById( INDEX_COLUMN ) );
              result.append( " " );
              result.append( tags.getAttribute( NAME, l_name ) );
              result.append( " />" );
              result.append( eol );
          }
  
          // closing tag
          result.append( "      " );
          result.append( tags.getClosingTagById( INDEX_DESCRIPTOR ) );
          result.append( " " );
          result.append( eol );
  
          return result.toString();
      }
docs: /*
  @see XmlCapable#toXML()