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
geek4uAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
geek4uAuthor Commented:
Thanks for the quick reply.

Mick BarryJava DeveloperCommented:
no worries :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.