One could also XPath evaluate the key content from two files and look for a 
set of common matches.

On Wednesday 22 June 2005 01:10 pm, Axel Weiß wrote:
> Praveen Maruvekere wrote:
> > Hello,
> >
> >
> >
> > Is there any way to compare two XML files using Xalan ?
> >
> >
> >
> > If there is any direct API to do this, please do tell me.
>
> Hi Praveen,
>
> there is no standard way to compare xml files.
>
> It's up to you to define, when two xml files are seen to be equal (e.g.
> do you count whitespaces? the order of attributes? the order of
> elements?). So you have to implement it.
>
> It's a matter of taste, but I would not implement this with xalan. I'd
> rather use the DOM of xerces and try to find a recursive (and easy)
> algorithm that does the comparison.
>
> Hope it helps,
>                       Axel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to