Costin Manolache wrote:
On 5/5/06, Jess Holle <[EMAIL PROTECTED]> wrote:
AFAIK XMLEncoder/XMLDecoder will save all the attributes, and lose
comments
in the round trip.
Yep. I'm not trying to save comments in my case -- just configuration
values.
What I feel is missing is that I persist *values*. I cannot persist the
notion that the value was obtained via $(propertyName) substitution in
the XML, for example.
With DOM - you have a good round trip, and if all config happens via JMX,
you know what attributes have changed.
True enough. One could also merge these in via XSLT.
Apple and Mozilla configs are the models I'm considering, even if some of
the structure is lost in the
round trip, I think having only the modified elements is essential. I
don't
think you can do this with XMLEncoder,
and our server.xml saving doesn't seem to support this either.
I'm not sure what you mean by "having only the modified elements".
XMLEncoder only saves attributes that differ from their default values,
if that's what you mean.
--
Jess Holle
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]