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
--
Humboldt-Universität zu Berlin
Institut für Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Weiß
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]