Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

writing into existing XML file through java code

Last post 04-24-2008 11:10 AM by dpi. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-24-2008 11:10 AM

    • dpi
    • Not Ranked
    • Joined on 04-23-2008
    • India
    • New Member
    • Points 5

    writing into existing XML file through java code

    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 

    • Post Points: 5
Page 1 of 1 (1 items)