• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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