i am new to digester and i find the philosophy behind it very interesting. The following question turned out:
is it possible (and if, how) using Digester to parse my xml file and
creating dynabeans out of the parsed properties ?
My xml file's content changes frequently and therefore i don't want to create "hard wired" beans. I would like to have beans instead, whose getters and setters dynamically adapt to the parsed properties. I read about DynaBeans, but i do not know how to combine Digester and Dynabeans.
An example for clearness: my xml file is:
<root>
<field>
<element name="test" id="1" value="testtest" />
</field>
</root>what i did is: i created an "element" bean with "name", "id" and "value" properties.
but, if the underlying "element" tag changes, like for example:
..
<element name="test" show="all" sort="asc" />
..
i have to adapt my bean, but it is tedious.
I know, i could use map-backed beans, but i would prefer using DynaBeans.Could anybody give me a hint please ?
Thank you for your time.
Kai
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
