I'm trying to figure out how I can create an object using a parent attribute
value as the className for the child. Here's a sample XML snipet:
<parent childClass="mypackage.childClass">
<child attribute1="value1" attribute2="value2"/>
<child attribute1="value3" attribute2="value4"/>
</parent>
I've created and initialized parent with the following:
digester.addObjectCreate("parent", "mypackage.parentClass");
digester.addSetProperties("parent");
The problem comes in with creating the child. I've looked at archives of this
news group and haven't found the right way to do this with a current version.
I'm new to Digester and the documentation, while not bad, leaves something to be
desired. What I'd like to do is something like this:
digester.addObjectCreate("parent/child", <value of
parent.getChildClass()>);
Do I need to create my own ObjectCreationFactory to do this?
Thanks in advance.
Cheers,
Rob
--
Rob Cash
Technical Architect & Application Developer
Information Services
Nortel Networks (http://www.nortelnetworks.com)
Tel: (919) 992-7871
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]