Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML and DB comp

 
raj joe
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a oracle DB with some data .I have exported the data to an XML file.
Now I want to compare the data in the XML and the database.

do you know of any tools that can help me ?
 
Sreenivasan M
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use java DOM/SAX parsing for xml file...and find out the tag names...and the inner text values...

use a similar approach for oracle bd file also...


after that compare using a java compare program...which takes two files as parameters adn compares the values between them
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you export the data from Oracle to XML? Did you use Oracle's XML functions like XMLForest, XMLElement? If so you could save this operation, plus it's more effective this way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic