how to update the attribute value
Hi all,
My xml file looks like this.
<program>
<client host="192.168.1.34">
</client>
</program>
I want to update the value of host attribute to 192.168.1.66.How to do this in java.I have tried using DOM but it is not working.Can somebody have any idea?
with regards,
ajse
[351 byte] By [
ajseajsea] at [2007-10-3 2:50:41]

Since you claim you have tried using DOM but it is not working, how can we help?
Since I can see the Element entry in the JavaDocs has a getAttribute( "host") method that can return the "192...." value, and a setAttribute("host", newvalue) method that can set the attribute to a new value, I guess you did not get an Element, or do not know what to do with an Element. (This is a hint for you.)
Post your code and someone may be willing to offer a suggestion.
Dave Patterson