I am using Digester 1.4.1 to parse xml documents. I am defining my rules in an xml document instead of programmatically. Based on my understanding of the documentation, the method defined in the <set-next-rule> element is typically used to insert a completed bean into its parent. Therefore, it should be called when the bean is completed i.e. when other method calls defined on that bean have been performed. Here is an excerpt of my xml rules file:
<pattern value="batch">
<object-create-rule classname="my.package.xml.XMLMarker"/>
<pattern value="snps/snp">
<object-create-rule classname="my.package.Marker"/>
<call-method-rule methodname="setLSID" paramcount="1"/>
<call-param-rule attrname="lsid" paramnumber="0"/>
<set-next-rule methodname="setMarker"/>When the setMarker method is called on the XMLMarker object, the setLSID method has not yet been called on the Marker object. As I just explained, my expectation was that it would have been. What am I missing/misunderstanding?
Thanks,
Martin.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
