2 Replies Latest reply: Jan 29, 2013 3:27 AM by 986285 RSS

    Appending content to an XML file in the Root tag using FileAdapter

    986285
      Hi Friends..!!
      I have got a requirement like this. There will be an XML file with List of Employees like following...

      <Employees>
      <Emp>
      <SNo>111</Sno>
      <Fname>Mahesh<Fname>
      <Lname>Babu</Lname>
      </Emp>
      <Emp>
      <SNo>222</Sno>
      <Fname>----<Fname>
      <Lname>-----</Lname>
      </Emp>
      <Emp>
      <SNo>----</Sno>
      <Fname>----<Fname>
      <Lname>----</Lname>
      </Emp>
      -------
      ---------
      </Employees>

      .. So What i have to do is Appending the given Employees info to the existed XML file using File Adapter. But When i m trying to figure it out.. the given details are appended at the end of the previous content.. but i want to see all the Emp tags(the newly appended emp list also) in the existed <Employees> tag only..
      (i m also facing namespace issues here)

      Can u plz provide solution for this problem..?

      Thanks in advance.

      Regards-
      Nlion7