[jdom-interest] help basic parsing

Jack vomaringo at yahoo.com
Wed Feb 21 08:05:36 PST 2007

i'm trying to use jdom with the following xml file.
i had like to change the port number (here 1099).
how can i retrieve the text value of the attribute port ? 
i have used 3 iteration loop  but i'm sure there's less complicated.

<attributes xmlns="http://geronimo.apache.org/xml/ns/attributes-1.1">
  <module name="geronimo/rmi-naming/1.1.1/car">
     <gbean name="RMIRegistry">
        <attribute name="port">1099</attribute>
     <gbean name="NamingProperties">
        <attribute name="namingProviderUrl">rmi://</attribute>
     <gbean name="DownloadedPluginRepos">
        <attribute name="repositoryList">http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/plugins-1.1.1/default-repositories.txt</attribute>
        <attribute name="userRepositories">[]</attribute>

Have a burning question? Go to Yahoo! Answers and get answers from real people who know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20070221/f6f56a7a/attachment.htm

More information about the jdom-interest mailing list