commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ab...@bellsouth.net>
Subject digester
Date Thu, 14 Jul 2005 17:00:42 GMT
Here is my example xml:

<example-xml>
  <tests>
     <test key="abc" value="a" />
     <test key="xyz" value="b />
</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");

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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message