Chris Jensen wrote:

In a nutshell, the Elements are being mapped to objects in a vector.
eg
<filter name="filter1">
  <settings>
     ...
  </settings>
</filter>
<filter name="filter2">
  <settings>
     ...
  </settings>
</filter>

So the order that they appear is important, and the user may wish to
reoder them.
If that's not possible, then I guess I will have to just add an order
attribute and change that, but it would've been more intuitive for
people editing the file by hand if the elements appeared in order in
the XML.

IMHO for such a use case I would use Digester/Betwixt instead of Commons Configuration. This will allow you to create Filter instances, reorder them as you want and then save them. Commons Configuration is designed for simple configuration purposes, not for higher level object serialization.


Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to