how to write data dynamically to an xml file in java
843834Jun 29 2010 — edited Jul 13 2010i want to write the values from the text fields that the user enters, and write it to an xml file dynamically. The problem is when first time the xml file is created, i want the lines -
"?xml version = "1.0"
"encoding = ISO - 8859-1"?
<root tag>
// append the dynamic data here
</root tag>
but the next time when that swing frame is run, and the user enters values in the text fields, the data should be appended to the file in the above shown format. Can someone help me with this?
Edited by: peggy83 on Jun 29, 2010 12:30 PM