[jdom-interest] one attribute several values
Grzegorz Kaczor
grzegorz.kaczor at computaris.com
Wed Jan 17 01:07:43 PST 2007
> Hi all. I want to modify an xml archive with sentences like this:
> <user username="both" password="tomcat" roles="tomcat,role1"/>
>
>
> As you can see, there are more than one value for the attribute
> "roles". So my question is how can I do that with jdom?
> My only choice is attr.setValue("tomcat,role1") ??? I would like to be
> able to do something like that: attr.setValue("tomcat") and
> attr.setValue("role1") or something like that so that the final
> sentence be roles="tomcat,role1"
> Thnx.
Hi Ernesto,
I think that 'tomcat,role1' is the value of the attribute and JDOM knows
nothing about higher-level logic. There is no support for that in JDOM.
Grzegorz Kaczor
--
Grzegorz Kaczor
Computaris Poland
Mobile: +48660742724
grzegorz.kaczor at computaris.com
This email is subject to Computaris email terms of use: http://www.computaris.com/email_terms.html
More information about the jdom-interest
mailing list