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

standard xml api VS dom4j

 
gianni ipez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I need to write a java program that goes through a xml file,
and depending on the content does some task.
For example, if a certain node A has 4 specific children B,C,D,E it needs to look into a database for a table called A and if it exists insert in that table its children value.
As for xml processing, do you suggest me to use standard xml api or to learn some framework like dom4j?
which advantages can it give?
Thank you.
Gianni
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To avoid confusion and be able to make use of existing tutorials and libraries, use the Java standard library for XML.

Bill
 
gianni ipez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bill.
Gianni
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic