How to write to an existing XML file using java

ShawnPrend

New Member
I've got an xml file looked like this. employees.xml\[code\]<Employees> <Employee> <FirstName>myFirstName</FirstName> <LastName>myLastName</LastName> <Salary>10000</Salary> <Employee></Employees>\[/code\]Now how do I add new Employee elements to the existing XML file?.. An example code is highly appreciated.
 
Back
Top