Results 1 to 1 of 1
  1. #1
    Arsench is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default XML set Node Value help needed

    Hello,

    I have a XML file NAME.XML, I can read the XML and get the node names. The only thing is that I canít (or donít know how) to set new value to empty node. Here is the XML example:

    <city>
    <person>
    <name /> // here must be set the new value.
    <age>25<age/>
    </person>
    </city>

    The name is a simple string like String name = ďSponger BobĒ;
    Any help please?
    Thanks in advance.
    Last edited by Arsench; 10-16-2011 at 12:20 AM. Reason: word correction

Similar Threads

  1. node.x
    By java software in forum Java Software
    Replies: 0
    Last Post: 10-10-2011, 07:20 PM
  2. [DOM] How to insert a new node ?
    By adash in forum XML
    Replies: 0
    Last Post: 09-06-2011, 02:09 PM
  3. Guidance Needed for Removing a Node
    By Cod in forum New To Java
    Replies: 0
    Last Post: 03-13-2011, 01:19 PM
  4. Vetex vs Node
    By BeijingDuck in forum New To Java
    Replies: 19
    Last Post: 01-19-2011, 07:29 PM
  5. How to disabled a node.
    By smartsubroto in forum New To Java
    Replies: 32
    Last Post: 07-01-2008, 07:30 AM

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
  •