Bug 147542 XML data set designer shows no available columns with attached files
Create an XML data source using BOTH the attached XML file and XSD schema file. Then create a data set using /ITEMS/ITEMSROW as row mapping. In the next dialog to define column mapping, no available column is shown under ITEMSROW. If only the XML file (but not the XSD schema file) is specified the data source, all available columns are shown. INTERNAL REF: SCR84784
data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
*/
final class XSDFileSchemaTreePopulator
{
	private static boolean includeAttribute = true;
	/**
	 * Populate the whole tree until all the leaves have no child.
	 * 
	 * @param root
	 */
	private static void populateRoot( ATreeNode root )
	{
		Object[] toBeIterated = root.getChildren( );
		for ( int i = 0; i < toBeIterated.length; i++ )
		{
			Object value = ( (ATreeNode) toBeIterated[i] ).getDataType( );
																			
			List container = new ArrayList( );
			findNodeWithValue( root, value.toString( ), container );
			for ( int j = 0; j < container.size( ); j++ )
			{
				if ( ( (ATreeNode) container.get( j ) ).getChildren( ).length == 0 )
				{
					Object[] os = ( (ATreeNode) toBeIterated[i] ).getChildren( );
					for ( int k = 0; k < os.length; k++)
					{
						if( !(((ATreeNode)os[k]).getDataType()!= null && ((ATreeNode)os[k]).getDataType().equals(((ATreeNode) container.get( j )).getDataType())))
							( (ATreeNode) container.get( j ) ).addChild( os[k]);
					}
			
				}