hello,<br>i'm trying to use jdom with the following xml file.<br>i had like to change the port number (here 1099).<br>how can i retrieve the text value of the attribute port ? <br>i have used 3 iteration loop&nbsp; but i'm sure there's less complicated.<br>thanks.<br><br>&lt;attributes xmlns="http://geronimo.apache.org/xml/ns/attributes-1.1"&gt;<br>&nbsp; &lt;module name="geronimo/rmi-naming/1.1.1/car"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;gbean name="RMIRegistry"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;attribute name="port"&gt;1099&lt;/attribute&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gbean&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;gbean name="NamingProperties"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;attribute name="namingProviderUrl"&gt;rmi://0.0.0.0:1099&lt;/attribute&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gbean&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;gbean name="DownloadedPluginRepos"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;attribute
 name="repositoryList"&gt;http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/plugins-1.1.1/default-repositories.txt&lt;/attribute&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;attribute name="userRepositories"&gt;[]&lt;/attribute&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gbean&gt;<br>&nbsp; &lt;/module&gt;<br>&lt;/attributes&gt;<br><br><p>&#32;

<hr size=1>Have a burning question? Go to <a href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx">Yahoo! Answers</a> and get answers from real people who know.