Hi,
I am using Digester to transform my own xml file which looks like :

<first-tag>
        text 1
        <second-tag>
                text 2
        </second-tag>
</first-tag>

Rules are set with digester in the following way :

digester.addObjectCreate(xmlpath,classname);
digester.addSetProperties(xmlpath);
digester.addSetNext(xmlpath, "addProduct", 
                             classname);
    
digester.addCallMethod(xmlpath+"/first-tag", "setFirsttag", 0);
digester.addCallMethod(xmlpath+"/first-tag/second-tag)", "setSecond-tag",
0);

As a result I have for both setMethods the "text 2", I did not manage to get
"text 1". 
As I am a new user of struts, I would be very grateful if someone could help
me.

Sandrine

Reply via email to