Hi all. I got the following XML digitField \d+ en Only digit values are allowed Here is my bean public class RegexValidatorType { private String expression; private HashMap messages; private String type; //getters and settters here ........ } I want to strore All regex-validators in ArrayList of RegexType bean and to store the messages in HashMap with key and value . How to do that inserting in the map with digester? This is my code without the messages mapping: digester.addObjectCreate("regex-validators", ArrayList.class); digester.addObjectCreate("regex-validators/regex-validator", RegexValidatorType.class); digester.addBeanPropertySetter("regex-validators/regex-validator/type", "type"); digester.addBeanPropertySetter("regex-validators/regex-validator/expression", "expression"); digester.addSetNext("regex-validators/regex-validator", "add");