commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Haag" <holger.h...@gmx.de>
Subject Re: Re: Re: [betwixt] Versioning of XML Output
Date Fri, 19 May 2006 06:37:09 GMT
Hi,

maybe there is even a better way of doing it, more flexible and probably
about the same amount of work.

Here's what to do:

* Store all attributes of an element in a .betwixt file in the corresponding
ElementDescriptor
* Store all attributes of an attribute in a .betwixt file in the
corresponding AttributeDescriptor
* Add and support new interfaces ElementSuppressionStrategy and
AttributeSuppressionStrategy

This way, the application using betwixt can define its own custom attributes
and strategies for suppressing elements/attributes.

Such attributes/strategies could be for example
* Versioning: Suppress attributes/elements for older clients
* Versioning: Suppress obsolete attributes/elements 
* Add debug information to XML documents if desired
* Suppress elements/attributes for smaller XML documents (to save bandwidth)
* ...

What do you think ?
Holger

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message