Replacing elements in a given XML file

nepnep <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
I am looking for a way to change element's text in a XML file.
I want the changes to be saved in that file!!

The XML file:

<root>
   <attack>
       <test>
          <analysis>
              <name>Element's Name</name>
              <value>20000</value>
          </analysis>
       </test>
   </attack>
</root>

I want to change only the value , let's say, to 10000.

I'd be very happy if someone can help me with that one,
Thanks.
-- 
View this message in context: http://old.nabble.com/Replacing-elements-in-a-given-XML-file-tp27606018p27606018.html
Sent from the JDOM - General mailing list archive at Nabble.com.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.