On Tuesday, October 1, 2002, at 10:06 AM, Jason van Zyl wrote: > Ok, I have something like this: > > <rendererConfiguration> > <properties> > <property name="x" value="y"/> > <!-- Add more properties here --> > </properties> > </rendererConfiguration> > > I want to add more <property/> elements. Know off hand how to do that?
You can use the ConfigurationMerger (http://jakarta.apache.org/avalon/excalibur/configuration/ configuration-merger.html). The "base" would be what you have there, and then you could merge in a "layer" ala <rendererConfiguration excalibur-configuration:merge="true"> <properties excalibur-configuration:merge="true" > <property name="a" value="b"/> <property name="c" value="d"/> </properties> </rendererConfiguration> and you would get <rendererConfiguration> <properties> <property name="x" value="y"/> <property name="a" value="b"/> <property name="c" value="d"/> </properties> </rendererConfiguration> .... You could create the layer dynamically at runtime. The excalibur-configuration attributes are metadata that the merger uses to know whether or not to merge those elements from the base and layer, or or include both. -pete -- peter royal -> [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
