commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reid Pinchback <>
Subject RE: Property not being set [Digester]
Date Thu, 09 Sep 2004 18:38:07 GMT
Almost forgot, there is a way to both avoid changing
the XML and avoid changing the code.  Use a
SetPropertiesRule and specify the mapping of the
attribute name to a property name.

Digester d=new Digester();
// set rules as usual, and also
Rule spr=new SetPropertiesRule("foo","fooText");
d.addRule(yourPattern, spr);
// parse as usual

Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.

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

View raw message