| Author |
how can I update xml file in java?
|
arun singhal
Ranch Hand
Joined: Oct 25, 2009
Posts: 41
|
|
I want to update a xml file in java..
like in sql update command is use for update table in database--
as an example--
update student
set marks ='30',status = 'present'
in this student is a table in mysql database whis have two attribute marks and status.And from given command both can be update..
Like that If database is in XML formate..Then If I want to update some attribute in java then how can we do this..
Please help me to get out of this problem..
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 457
|
|
Arun,
I would be interested to know, if there is any easy way to do this. My approach would be rather to read the XML using JDOM (or other related technologies) and create an object representation and using setters I would manipulate the data and covert it back to XML file. But this may not be a good solution at all, if you have multiple updates like this.
|
Regards
KumarRaja
|
 |
miki landon
Greenhorn
Joined: Sep 02, 2008
Posts: 5
|
|
Hi,
I wondered if you have foud any solutions yet?
Could you please share your solutions?
Thanks,
|
 |
 |
|
|
subject: how can I update xml file in java?
|
|
|