[Magic] Type vs Types in Info element

Stephen Nesbitt snesbitt at cobaltgroup.com
Tue Feb 22 12:39:38 EST 2005


All:

In walking through the index.xml parsing code, I noticed that <info> element 
handles the <type> element in two distinct fashions:
- one can add one or more <type> elements as direct children of the <info> 
element

- one can add a <types> element as a child of the <info> element. The <types> 
element can then contain a set of <type> elements


This strikes me as odd and less than ideal because:
- it complicates parsing
- it complicates validation
- it is confusing to the user may assume there is a difference between the 
two.

Just my 2 cents.

-steve

-- 


Stephen Nesbitt
Senior Configuration Management Engineer
The Cobalt Group
snesbitt at cobaltgroup.com
x8271



More information about the dev-dpml mailing list