File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Using DOM  to set the value of a tag. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using DOM  to set the value of a tag." Watch "Using DOM  to set the value of a tag." New topic

Using DOM to set the value of a tag.

igwe kalu kalu ogba
Ranch Hand

Joined: Feb 03, 2005
Posts: 133
Hello, I have an XML file and want to be able to edit it's tags:, This is what my document looks like:




I want to be able to change the values of tags such as user-name, password and min-pool-size e.t.c. How do I do this using DOM. I am able to use DOM to setAttributes e.t.c. How do I set the value of a tag and not it's attribute. Also, since this xml file contains a number of <local-tx-datasource> element tags, how do I select which particular tag I want to edit. thank you.
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
There is a tutorial in ibm developers site called "Understanding DOM", that would help you to get started.
I agree. Here's the link:
subject: Using DOM to set the value of a tag.
Similar Threads
Jboss, connection problem
[JCA/JBOSS] Change the default Hypersonic to Oracle
connection pool with jboss
Unable to obtain datasource
Jboss connection pool not releasing the connection from pool