|
From: Rod J. <rod...@in...> - 2003-05-28 16:17:25
|
Let's take the following (which I posted earlier today) as the basis for discussion. JP is happy. Is everyone else happy with this, or have any suggestions? I've written a DTD, which makes authoring fairly easy (although the Eclipse XML editor isn't enforcing correct referencing): <bean class="MyClass" id="foos" singleton="false> <property name="foo"><value>FOO</value></property> <property name="foo3"> <ref refid="foo3"/> </property> <property name="foo4"> <value>FOO4.1</value> <value>FOO4.2</value> <ref refid="foo4.3"/> </property> </bean> Always consistent: always at least one value or ref subelement of a property elt; <value> contains only text data; ref body must be empty. Slightly more verbose, but probably easier to author with an XML editor (even the basic Eclipse XML editor I use most of the time). I don't care whether it's called value or data, or anything else...any ideas? Regards, Rod |