public XTable( String id, String[][] elements )
{
super();
Node text = htmlDoc.getBody().getFirstChild().cloneNode( true );
HTMLTableElement table = (HTMLTableElement)htmlDoc.createElement( "TABLE" );
HTMLTableSectionElement body = (HTMLTableSectionElement)htmlDoc.createElement( "TBODY" );
HTMLTableRowElement row = (HTMLTableRowElement)htmlDoc.createElement( "TR" );
HTMLTableCellElement cell = (HTMLTableCellElement)htmlDoc.createElement( "TD" );
table.appendChild( text );
table.appendChild( body );
table.setId( id );
body.appendChild( row );
body.appendChild( text.cloneNode( true ) );
row.appendChild( text.cloneNode( true ) );
row.appendChild( cell );
row.appendChild( text.cloneNode( true ) );