XML comparator using Java

XML comparator using Java

Page 1 of 1

5 Replies - 1603 Views - Last Post: 16 June 2010 - 11:41 AM Rate Topic: -----

#1 QJava  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 08-June 10

XML comparator using Java

Posted 09 June 2010 - 03:11 AM

Hello All,
We want developed an utility in our Java Web application which can compare two text / XML files.

Currently we have done it by using org.custommonkey.xmlunit.DetailedDiff and with the mix of DOM parsers.
But this needs lots of programming and fails for complex XMLs where lots of changes in sequence are involved.

To achieve better results currently we are trying com.a7soft.examxml;
but this is also giving differences in a file and not able to highlight two XMLs.

Has anybody tried building such utility?
We are okay to invoke a third party tool using java.
and then this tool can show differences in our XMLs, something similar to invoking excel from Java.

Any help in this matter is highly appreciated.
Utility should be as good as Beyond Compare or Notepad++ comparator.

Is This A Good Question/Topic? 0
  • +

Replies To: XML comparator using Java

#2 NoobKnight  Icon User is offline

  • D.I.C Head

Reputation: 49
  • View blog
  • Posts: 238
  • Joined: 14-July 09

Re: XML comparator using Java

Posted 09 June 2010 - 09:11 AM

We use Guiffy. Its work well for us.

Guiffy home page
Was This Post Helpful? 1
  • +
  • -

#3 QJava  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 08-June 10

Re: XML comparator using Java

Posted 10 June 2010 - 06:11 AM

View PostNoobKnight, on 09 June 2010 - 08:11 AM, said:

We use Guiffy. Its work well for us.

Guiffy home page


Thanks a lot.. I'll try the same and let you know if any prbml.
It seems we have to purchase this software and use their Java APIs for opening a comparator window. Did you guys purchased it?
Was This Post Helpful? 0
  • +
  • -

#4 JMayura  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 06-June 10

Re: XML comparator using Java

Posted 16 June 2010 - 09:10 AM

Hi ,

We are trying to integrate Guiffy in our j2ee webapplication.
When we run the application on windows , guiffy works fine.
But when it run through Unix , it gives error as
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
We have tried following option to solve this . But it didn't work
1.Djava.awt.headless=true
export LD_LIBRARY_PATH="/usr/X11/lib"
-- This doesn't throw any error . But it doesn't show any output on screen.
2. Djava.awt.headless=false
export DISPLAY=169.82.103.187:1.0
-it throw the error as “Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable”


Please help if anybody has faced this issue .
Was This Post Helpful? 0
  • +
  • -

#5 m-e-g-a-z  Icon User is offline

  • Winning
  • member icon


Reputation: 496
  • View blog
  • Posts: 1,453
  • Joined: 19-October 09

Re: XML comparator using Java

Posted 16 June 2010 - 09:49 AM

@JMayura, open up your own thread instead of hijacking this one.
Was This Post Helpful? 0
  • +
  • -

#6 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,835
  • Joined: 27-December 08

Re: XML comparator using Java

Posted 16 June 2010 - 11:41 AM

@JMayura: I PMed you with the link to the new Thread I made from your posts in this thread. Please use that thread to ask your questions instead of hijacking another thread.

Topic closed.
Was This Post Helpful? -1
  • +
  • -

Page 1 of 1