This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to modify  XML file in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to modify  XML file in Java" Watch "How to modify  XML file in Java" New topic
Author

How to modify XML file in Java

mohanasundaram muthukannan
Ranch Hand

Joined: May 29, 2008
Posts: 35

Dear all,

i have a one xml file.



and i want modify like Tom is Ram and Cruise is sundar using java.

is it possible or not?

Regards,
Mohan


Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Not an advanced question at all. Yeah, it's possible by the way.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
There are any number of libraries/APIs you can use to modify XML files: DOM, XOM, dom4j, JDOM, ...


Ping & DNS - updated with new look and Ping home screen widget
 
Don't get me started about those stupid light bulbs.
 
subject: How to modify XML file in Java
 
Similar Threads
XML file parsing in Java using SAX
Generating XML from template file.
Reading XML In Form Of Key-Value Pair
below code is correct way to write the code in generic way if we receive different xml formats
expandable multidimensional ArrayList or Multidimensional Arrays?