i want to enter data into XML file through java code.
eg: if i have Book.xml as:
<book>
<person>
<first>Kiran</first>
<last>Pai</last>
</person>
<person>
<first>Bill</first>
<last>Gates</last>
</person>
</book>
I want to replace/enter first name and last name values through java
code . ie Kiran should be replaced by the value given in java code...
can someone give simple java code to write into this file