<br><br><b><i>Laurent Bihanic &lt;laurent.bihanic@atosorigin.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>Using XPath, you should be able to do the following (not tested) :<br><br>Document doc = new SAXBuilder().build(...);<br><br>XPath xpath = <br>XPath.newInstance("//ns1:gbean[@name='RMIRegistry']/ns1:attribute[@name='port']");<br>xpath.addNamespace("ns1", "http://geronimo.apache.org/xml/ns/attributes-1.1");<br><br>Element port = (Element) xpath.selectSingleNode(doc);<br>port.setText("8080");<br><br>Laurent<br><br></blockquote>thanks. works great.<br>regards,<br><br><br><p>&#32;

<hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a>