> > Another possibility would be to let the user choose.  Suppose that
> > config.getPropertyValueAsString("name") -- a bit of a long name 
> > -- returned "Something" for both of the following
> > 
> > <component name="Something" />
> > 
> > and
> > 
> > <component>
> >   <name>Something</name>
> > </component>
> 
> This is how the XmlProperty task in Ant <shameless>that I 
> wrote</shameless> deals with properties, when collapseAttributes="true".
> 
> http://jakarta.apache.org/ant/manual/CoreTasks/xmlproperty.html
> 
> The main reason is that it makes it easy to invent an informal DTD and 
> access it easily.

Just FYI, this is the way Resin handles its configuration file,
which is quite convenient.


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]


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

Reply via email to