I'm wanting to set all XML attributes on my object.
At the time of XML digesting, I don't know the set of attribute names.
If I use a SetPropertiesRule, my object will require a setX() method for
every attribute.

If I parse
        <mybean foo="ABC" bar="123" />

Using the following bean:
        public class MyBean {
                public Map attributes = new HashMap();
                public void setAttribute(String name, String value);
        }

I'd like the digester to do the following:
        MyBean myBean = new MyBean();
        myBean.setAttribute("foo", "ABC");
        myBean.setAttribute("bar", "123");

Is there a digester rule that will do this?

Thanks,
Lance.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to