Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Java in General
How to modify XML file in Java
mohanasundaram muthukannan
,
Ranch Hand
May 28, 2009 01:07:32
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Dear all,
i have a one xml file.
<?xml version="1.0"?> <company> <employee> <firstname>Tom</firstname> <lastname>Cruise</lastname> </employee> <employee> <firstname>Paul</firstname> <lastname>Enderson</lastname> </employee> <employee> <firstname>George</firstname> <lastname>Bush</lastname> </employee> </company>
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
May 28, 2009 01:43:41
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Not an advanced question at all. Yeah, it's possible by the way.
Ulf Dittmer
,
Rancher
May 28, 2009 01:54:34
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
There are any number of libraries/APIs you can use to modify XML files: DOM, XOM, dom4j, JDOM, ...
Post by:
autobot
These are the worst of times and these are the best of times. And this is the best tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
This thread has been viewed 3275 times.
Similar Threads
XML file parsing in Java using SAX
below code is correct way to write the code in generic way if we receive different xml formats
Generating XML from template file.
Reading XML In Form Of Key-Value Pair
expandable multidimensional ArrayList or Multidimensional Arrays?
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:14:40
.