one attribute several values 2007-01-17 - By Ernesto Reig
Back 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 all. I want to modify an xml archive with sentences like this:<br><user username="both" password="tomcat" roles="tomcat,role1 "/><br><br><br>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? <br>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" <br>Thnx.<br>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|