Results 1 to 3 of 3
  1. #1
    gamalpha is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default Need to perform simple xml value changes from my own program

    I am writing a program which needs to be able to do to simple things to an xml file. The first is to be able to read in an element's content given the elements tag. The second is to be able to replace the element's content with different content. I want a library that gives me two functions such as

    getContent(tags);

    replaceContent(tags,newContent);

    What is the best software available to do this (preferably free).

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default

    The javax.xml.parsers and org.w3c.dom libraries (in JRE 6) has several classes which allow you to parse and edit xml. Apache as well has one or two libraries which facilitate reading/writing in xml, such as Welcome to xml-commons

  3. #3
    gamalpha is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default parser

    Quote Originally Posted by doWhile View Post
    The javax.xml.parsers and org.w3c.dom libraries (in JRE 6) has several classes which allow you to parse and edit xml. Apache as well has one or two libraries which facilitate reading/writing in xml, such as Welcome to xml-commons
    Thanks I'll take a look.

Similar Threads

  1. Simple program, simple problem
    By taymilll in forum New To Java
    Replies: 12
    Last Post: 06-20-2011, 05:12 AM
  2. Please help with simple program.. Very simple.
    By jonytek in forum New To Java
    Replies: 7
    Last Post: 02-14-2011, 12:44 AM
  3. Simple program help
    By jtyler in forum New To Java
    Replies: 3
    Last Post: 09-20-2010, 07:43 AM
  4. Replies: 10
    Last Post: 05-01-2010, 09:51 PM
  5. Simple Program
    By TheRocket in forum Advanced Java
    Replies: 15
    Last Post: 12-30-2008, 02:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •