Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to write data dynamically to an xml file in java

843834Jun 29 2010 — edited Jul 13 2010
i 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2010
Added on Jun 29 2010
4 comments
1,666 views