I need to use the NodeCreateRule to parse nested Elements with mixed content in my
documents.
As I always got NoSuchMethodExceptions somewhere after the NodeCreateRule executed, I
took a look into the source code and found out, that NodeCreateRule does not overwrite
the end() method of org.apache.commons.digester.Rule.
But because of this, the Node does not get popped from the stack when the closing tag
is reached.
I think this is a bug because NodeCreateRule should behave the same way as
ObjectCreateRule does.
It worked fine after I derived the following class and used it instead of
NodeCreateRule:
public class MyNodeCreateRule extends NodeCreateRule {
[ ... all the Contructors calling super(...) ...]
public void end() throws Exception {
Object top = digester.pop();
}
}
Is this a bug or did I just use this rule in the wrong way?
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]