Thanks for the feedback.

Unfortunately, there is not a lot I can do about the XML, which is from a public site.

I have solved the problem, but not quite with the mechanisms you suggest.

For the XML:
<Root> 
  <subSection> 
    <id>7</id>   
      <Item Name="forProperty" Type="String">This is the 
Content</Item>  
      <Item Name="forAnotherProperty" Type="String">More 
Content</Item>  
  </subSection> 
</Root> 

I used this:

        digester.addObjectCreate("root", root.class);
        digester.addObjectCreate("root/subsection",subsection.class);
        digester.addBeanPropertySetter("root/subsection/Id", "id");
        digester.addObjectCreate("root/subsection/Item", Item.class); 
        digester.addSetProperties("root/subsection/Item", "Name", "name");
        digester.addSetProperties("root/subsection/Item", "Type", "type");
        digester.addSetNext("root/subsection/Item", "addItem" );
        digester.addCallMethod("root/subsection/Item", "addItemValue", 0); 
        digester.addSetNext("root/subsection", "addSubsection");

which seems to do the job of parsing, so that I have a root of subsections, each 
subsection containing items; each item has a list of 'properties' [name] with values 
corresponding to the tag 'content'.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to