sp = new SaxParser( fileName, this ); spThread = new Thread( sp ); spThread.start( ); while ( sp.isAlive( ) && !sp.isSuspended( ) )
try
	public ATreeNode getSchemaTree( String fileName, boolean includeAttribute )	{		this.includeAttribute = includeAttribute;		sp = new SaxParser( fileName, this );		spThread = new Thread( sp );		spThread.start( );		while ( sp.isAlive( ) && !sp.isSuspended( ) )		{			try			{				synchronized ( this )				{					wait( );				}			}			catch ( InterruptedException e )			{				// TODO Auto-generated catch block				e.printStackTrace( );			}		}		return root;	}