commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle Miller <kyle.mil...@sbcglobal.net>
Subject Re: digester
Date Thu, 14 Jul 2005 18:10:22 GMT


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


---------------------------------------------------------------------
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