commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akiraleon123 <>
Subject digester rules pattern issue
Date Mon, 19 Nov 2007 20:13:54 GMT

Hi All,
The following is my xml file that i am trying to load into Resource objects
and store into an arraylist. But my arraylist is empty. I believe it has got
sth to do with the pattern i am using. I 'd appreciate your help.

<company name="abc">

<resource name="pete" type="human"/>
<resource name="tim" type="human"/>



The following is the digetser rules file.

        <pattern value="/country/companies/company/resources">
    <pattern value="/country/companies/company/resources/resource">
      <object-create-rule classname="Resource"/>

      <set-next-rule methodname="add" />
     <set-properties-rule >
      <alias attr-name="name" prop-name="name" />


My class file:

class Resource{
private String name;
//getters, setters

View this message in context:
Sent from the Commons - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message