Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A3C097A6 for ; Tue, 13 Mar 2012 21:54:27 +0000 (UTC) Received: (qmail 18434 invoked by uid 500); 13 Mar 2012 21:54:26 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 18359 invoked by uid 500); 13 Mar 2012 21:54:26 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 18351 invoked by uid 99); 13 Mar 2012 21:54:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 21:54:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simone.tripodi@gmail.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 21:54:20 +0000 Received: by yhkk6 with SMTP id k6so1353590yhk.30 for ; Tue, 13 Mar 2012 14:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PmrnkuMuKBDnBHvVq4pJNswaki+dt8t5V+YwgRj7EkI=; b=UtS5+AYbWk2QyHkNxeObJE+c9al+EEe7UtS3A3MidKMMmdTyf7ewllK6iVR+ycfOkC uJnmjXnsJL6uHHR0lFK+wjb1oOCmt2jFddJHoGQjMwUgxu+9gyH+TufUMvYwJ7OOOS4n aHkAY5Wks09sZ8izx84gpI705KvjX+V7/5qOIl1jEPa3oEyZ91boBv4Ofixj0IzJQ8O3 NWvHoiE+7fyI5euuS1/+jMtdQ/zm0kgXqQXdVZ28U320K74W3Kx2u+FrUdJB2wFSW66B nkVW0pAY9m6aPHLK65CiEX//S+QLtVeWsSpIfzRHgeiiaOMGE4U/reyZn4QnhR7Hx042 E/Lw== MIME-Version: 1.0 Received: by 10.229.106.193 with SMTP id y1mr62483qco.73.1331675639539; Tue, 13 Mar 2012 14:53:59 -0700 (PDT) Sender: simone.tripodi@gmail.com Received: by 10.224.195.73 with HTTP; Tue, 13 Mar 2012 14:53:59 -0700 (PDT) In-Reply-To: References: <1331378887.1576.ezmlm@commons.apache.org> Date: Tue, 13 Mar 2012 22:53:59 +0100 X-Google-Sender-Auth: DlbllCsJbjF1cgckcQtZcZM4Wrg Message-ID: Subject: Re: parse xml Tag with same attributes From: Simone Tripodi To: Commons Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Ramin, I would really like to help you but apologize, it is really hard for me reading that code embedded in email - could you please paste somewhere such as pastebin/gist? TIA, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ 2012/3/10 Ramin Heidari : > > Hi, > i want to pars an xml but I have a got a problem in defining rule for bel= ow part of xml because there are two same tage with different attrib= utes .i set the rule but it seems that i won't work(alway the value set nul= l).Do you have any idea who i can fix it. > XML........................ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02011-01-05T07:30:00<= /MatchDate> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Wellington P= hoenix FC =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Wellington =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0&nb > =C2=A0sp; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Melbou= rne Victory =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Melbourne Victory =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= ......................... > > =C2=A0 =C2=A0 =C2=A0 =C2=A0//A new Course instance =C2=A0 =C2=A0 =C2=A0 = =C2=A0digester.addObjectCreate("LivescoreData/Sport/Category/Tournament/Mat= ch", Match.class); > =C2=A0 =C2=A0 =C2=A0 =C2=A0//A new Course instance =C2=A0 =C2=A0 =C2=A0 = =C2=A0digester.addObjectCreate("LivescoreData/Sport/Category/Tournament/Mat= ch/Team1", Team1.class); > =C2=A0 =C2=A0 =C2=A0 =C2=A0digester.addSetProperties("LivescoreData/Sport= /Category/Tournament/Match/Team1","TeamId","teamId"); > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0digester.addBeanPropertySetter("livescoreData/= sport/Category/Tournament/Match/Team1/Name","name"); > =C2=A0 =C2=A0 =C2=A0 // digester.addCallMethod("livescoreData/sport/Categ= ory/Tournament/Match/Team1/Name", "setName", 1 ); > > =C2=A0 =C2=A0 =C2=A0 =C2=A0digester.addSetNext("LivescoreData/Sport/Categ= ory/Tournament/Match/Team1", "addTeam1"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0digester.addObjectCreate("LivescoreData/Sport/= Category/Tournament/Match/Team2", Team2.class); =C2=A0 =C2=A0 =C2=A0 =C2=A0= digester.addBeanPropertySetter("livescoreData/sport/Category/Tournament/Mat= ch/Team2/Name","language_en"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0digester.addSetNext("LivescoreData/Sport/Categ= ory/Tournament/Match/Team2", "addTeam2"); > > thanks,Ramin > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org