According to the coldspring dtd, it is possible to use "value" and
"ref" as attributes, instead of using them as children entities, as
short-cuts. But when I tried this coldspring threw a custom error. I
looked at the code, and it looks like it expects children entities.
Also, the dtd doesn't specify that 'name' is a valid attribute for
'constructor-arg', so XmlBuddy shows this as an error even though its
not. Could the dtd be updated to reflect the requirements in the code?
This is the parsePropertyDefinition() function inside the BeanProperty
class.
<!--- not (StructKeyExists(propertyDef.XmlAttributes,'name') and ---
>
<cfif not (StructKeyExists(propertyDef,'XmlChildren')
and ArrayLen(arguments.propertyDef.XmlChildren))>
<cfthrow type="coldspring.MalformedPropertyException" message="Xml
properties must contain a 'name' and a child element!">
</cfif>
Here are the dtd entries I'm referring to, and 'value' isn't among
them:
<!--
A short-cut alternative to a child element "ref bean=".
-->
<!ATTLIST constructor-arg ref CDATA #IMPLIED>
<!--
A short-cut alternative to a child element "value".
-->
<!ATTLIST constructor-arg value CDATA #IMPLIED>
--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to
coldspri...@googlegroups.com.
To unsubscribe from this group, send email to
coldspring-use...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/coldspring-users?hl=en.