[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Compare only XML Element between two files

Subject: Re: Compare only XML Element between two files
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Fri, 26 Dec 2008 22:57:43 +0530
Re:  Compare only XML Element between two files
This will give you the required result,

<xsl:value-of select="$file2//*[not(name() = $file1//*/name())]/name()" />

This would require XSLT 2.0.

On Fri, Dec 26, 2008 at 12:57 PM, Byomokesh Sahoo
<sahoo.byomokesh@xxxxxxxxx> wrote:
> Dear All,
>
> I am searching the solution to compare only XML Element not text. If
> any extra tag is found in file2.xml it will showing the tag name. Is
> it possible using XSL.
>
> file1 XML
> =====
> <TAG>
> <LONGNAME/>
> <PARCITE/>
> <QLCITE/>
> <COURTNAME/>
> <COURTNUMBER1/>
> <JUDGE/>
> </TAG>
>
> File2.xml
> =======
>
>
>
> <FILE>
> <PARCITE/>
> 33 C.L.A.S. 664
> <SAHOO/>
> <QLCITE/>
> [1994] O.L.A.A. No. 466
>
> <LONGNAME/>
> IN THE MATTER OF an Arbitration
> </FILE>
>
> I want showing the extra tag which is not available in file1.xml....
>
> Anyone help me to find out this solution...
>
> Thanks
>
> Byomokesh


-- 
Regards,
Mukul Gandhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.