We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

How to read, write and manipulate the XML file.

geek4u
geek4u asked
on
Medium Priority
302 Views
Last Modified: 2010-03-31
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
Comment
Watch Question

Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks for the quick reply.

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
no worries :)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.