Bug 148116 Use Data Type information in XSD file when creating XML data set
When you specify a XML Schema (XSD) file for a XML data source, then create a XML data set based on that data source, the data type information from the XSD is not used. I.e., if the user selects an element or attribute the data type of the node is not read from the XSD file. We should enhance the XML driver so that it automatically fill in the data type information from XSD.
data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
{
		Object[] os = root.getChildren( );
		for ( int i = 0; i < os.length; i++ )
		{
			if ( ( (ATreeNode) os[i] ).getValue( ).equals( value ) )
				return (ATreeNode) os[i];
		}
		return null;
	}
	/**
	 * Populate a tree of ComplexTypes defined in an XSD file.
	 * 
	 * @param xsModel
	 * @return	the root node of the tree.
	 */
	private static ATreeNode populateComplexTypeTree( XSModel xsModel )
	{
		XSNamedMap map = xsModel.getComponents( XSTypeDefinition.COMPLEX_TYPE );
		ATreeNode root = new ATreeNode( );
		root.setValue( "ROOT" );
		root.setDataType( "" );
		for ( int i = 0; i < map.getLength( ); i++ )
		{
			ATreeNode node = new ATreeNode( );
			XSComplexTypeDecl element = (XSComplexTypeDecl) map.item( i );
			if ( element.getName( ).equals( "anyType" ) )
				continue;
			node.setValue( element.getName( ) );
			node.setType( ATreeNode.ELEMENT_TYPE );
			node.setDataType( element.getTypeName( ) );