|
From: Rod J. <ro...@in...> - 2004-08-27 09:18:29
|
Steve
The first version of the DTD (with the Interface21 framework that preceded
Spring) used the simpler form you suggest. We moved away from it because it
was hard to support references etc. cleanly without a nested element for
value or alternatives.
I agree that line length can be an issue, but finger typing should never be
an issue: use XMLBuddy or the like. I haven't typed a Spring XML tag for
months.
Rgds
Rod
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf Of
Steve Hutton
Sent: 27 August 2004 05:59
To: spr...@li...
Subject: [Springframework-developer] <property><value>
Hi, I am a big fan of spring, but I've noticed the design of the spring
beans xml file seems overly verbose in a few places. For example, the
common case of a property entry with a single
value:
<property name="password">
<value>${db.pw}</value>
</property>
I think this would be more clearly expressed without the value tag:
<property name="password">${db.pw}</property>
|