--- [EMAIL PROTECTED] wrote:
> Here is my example xml:
>
> <example-xml>
> <tests>
> <test key="abc" value="a" />
> <test key="xyz" value="b />
</tests>
> </example-xml>
>
> Java code snippet:
>
> digester.addObjectCreate("example-xml/tests/",
> "Test.class");
> digester.addCallMethod("example-xml/tests/test",
> "addTest", 2);
> digester.addCallParam("example-xml/tests/test", 0,
> "key");
> digester.addCallParam("example-xml/tests/test", 1,
> "value");
//As longs as the attributes are named the same as the
java properties
digester.addSetProperties("example-xml/tests/test");
>
> Test.addTest signature:
> addTest(String key, String value)
>
> This metod is never get called??? What I'm
> missing???
>
> I guess I don't know how to handle attributes. I can
> change <test> related attributes to sub-elements and
> that will work but was hoping to figure out the
> solution with attributes?
>
> I'd appreciate any response!!!
>
> Thanks
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]