XML lends itself to big, ugly configuration files. Nevertheless, there is room for better and worse in configuration file design. Which of these do you like better, and why?
<beans> <bean id="java-bean" class="di.FixedSource"/> <lang:jruby id="ruby-bean" script-source="file:ruby/message_source.rb" script-interfaces="di.MessageSource" /> </beans>
Or option 2:
<beans> <bean id="java-bean" class="di.FixedSource"/> <bean id="ruby-bean" lang:source="file:ruby/message_source.rb" lang:interfaces="di.MessageSource" /> </beans>