Bug 199537 Fail to display data in Web viewer[0002]
Description: Fail to display data in Web viewer Build number:2.2.1.v200708101407 Steps to reproduce: 1. Preview attached report in Web Viewer. Expected result: Display data. Actual result: No data. Error log:n/a
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ReportDesignSerializer.java
* 
	 * @param module
	 * @param context
	 * @param content
	 */
	private void addElement( Module module, ContainerContext context,
			DesignElement content )
	{
		assert context != null;
		assert content != null;
		
		context.add( module, content );
		
		if ( context.isManagedByNameSpace( ) )
			module.rename( context.getElement( ), content );
		addElement2NameSpace( content );
		ContentIterator iter = new ContentIterator( module, content );
		while ( iter.hasNext( ) )
		{
			DesignElement child = (DesignElement) iter.next( );
			addElement2NameSpace( child );
		}
	}
	/**
	 * Adds an element to the name space. If the module is null, or element is
	 * null, or element is not in the tree of module, then do nothing.
	 * 
	 * @param module
	 * @param element
	 */