• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

How to read, write and manipulate the XML file.

Hi,

I have to create a JSP which will read the XML file and each item in the xml is listed with check box and when the required check boxes are marked, then the changes i.e, addition of more items or deletion should be done to the xml file.

What is the easy way to read, write and manipulate the XML file.

Given below is the sample:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<actions>
  <action-group name="catcher">
    <action-item name="catcher.add">
      <role-name>osfadmin</role-name>
    </action-item>
    <action-item name="catcher.list">
      <role-name>osfadmin</role-name>
      <role-name>osfsupport</role-name>
    </action-item>
    <action-item name="catcher.delete">
      <role-name>osfadmin</role-name>
    </action-item>
    <action-item name="catcher.edit">
      <role-name>osfadmin</role-name>
    </action-item>
    <action-item name="catcher.info">
      <role-name>osfadmin</role-name>
      <role-name>osfsupport</role-name>
    </action-item>
  </action-group>

  <action-group name="package">
    <action-item name="package.add">
      <role-name>osfadmin</role-name>
    </action-item>
    <action-item name="package.list">
      <role-name>osfadmin</role-name>
      <role-name>osfsupport</role-name>
      <role-name>IPTVadmin</role-name>
    </action-item>
    <action-item name="package.delete">
      <role-name>osfadmin</role-name>
    </action-item>
    <action-item name="package.edit">
      <role-name>osfadmin</role-name>
    </action-item>
    <action-item name="package.info">
      <role-name>osfadmin</role-name>
      <role-name>osfsupport</role-name>
      <role-name>IPTVadmin</role-name>
    </action-item>
    <action-item name="package.load">
      <role-name>osfadmin</role-name>
    </action-item>
  </action-group>
</actions>

Please let me know asap. I appreciate any help
0
geek4u
Asked:
geek4u
  • 2
1 Solution
 
geek4uAuthor Commented:
Thanks for the quick reply.

0
 
objectsCommented:
no worries :)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now