I have an xml file having data, and want to add more to that file when a button is pressed in swing frame-
the xml file is like this -
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<FDTracker>
<FDdetails>
<fdnumber>8</fdnumber>
<bankname>BOA</bankname>
<beneficiaryname>
test</beneficiaryname>
<rateofinterest>5</rateofinterest>
<amount>400</amount>
<maturityamount>6000</maturityamount>
</FDdetails>
// want to insert data here
<FDdetails>
.
.
.
</FDdetails>
</FDTracker>
how can i do this because every time the button is clicked, i want to store the data from the textfields of the window to an xml file , but i also want the previous data and the current one too.
I want to write the new data in between the <FDdetails> tag each time i click the button.
Can someone please help me with this? Completely exhausted searching on net for tutorials but no success.
I would really appreciate your help.
Thanks,
Pooja