avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@osa.de>
Subject Comparing 2 Configuration hierarchies
Date Sat, 05 Oct 2002 00:02:34 GMT
Hi All,

	Hope all is well.
	
	I was just wondering if anyone had written any code to compare 2
	Configuration hierarchies before ?
	
	ie: something like:
	
	Configuration c1 = builder.buildFromFile( "generated.xml" );
	Configuration c2 = builder.buildFromFile( "real.xml" );
	
	if ( ConfigurationComparator.equals( c1, c2 ) )
	{
		// c1 == c2
	}
	else
	{
		// c1 != c2
	}

	Or would it be easier to do this at some lower level with DOM ?
	
	Essentially what I'd like to do is compare that the actual
	content of c1 and c2 are the same (ie. not necessarily in the same 
	element order).
	
	Cheers,
	
	Marcus
-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message