commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Semmens <>
Subject [digester] Unhandled element and attributes
Date Fri, 14 Jan 2005 05:03:45 GMT
Do any rules exist that will execute if an unexpected element or attribute
is encountered in an XML file.

For the following xml

And the following code
	Digester dig = new Digester();
	dig.addObjectCreate("*/tag-a", ATag.class);
	dig.addCallMethod("*/tag-b", "doBTag");

I'd like a way of handling all the patterns that I have not attached rules
In my example, I have not attached a rule to <tag-c/> so I'd like to produce
a warning in this case.

Any suggestions?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message