Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 85824 invoked from network); 20 May 2005 14:50:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2005 14:50:15 -0000 Received: (qmail 78896 invoked by uid 500); 20 May 2005 14:50:02 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 78825 invoked by uid 500); 20 May 2005 14:50:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 78800 invoked by uid 99); 20 May 2005 14:50:01 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from watcher.dataductus.se (HELO ddskback1.dataductus.se) (213.199.99.201) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 20 May 2005 07:49:53 -0700 Received: (qmail 4004 invoked from network); 20 May 2005 14:43:40 -0000 Received: from unknown (HELO mailcleaner.dataductus.se) (192.168.100.102) by 0 with SMTP; 20 May 2005 14:43:40 -0000 Received: from ddskfront1.dataductus.se ([192.168.5.10]) by mailcleaner.dataductus.se (8.12.11/8.12.11) with ESMTP id j4KEUiDE009601 for ; Fri, 20 May 2005 16:30:44 +0200 Received: (qmail 2374 invoked from network); 20 May 2005 14:30:40 -0000 Received: from unknown (HELO mail.decim.com) ([192.168.103.5]) (envelope-sender ) by ddskfront1.dataductus.se (qmail-ldap-1.03) with SMTP for ; 20 May 2005 14:30:40 -0000 Received: from [192.168.103.198] ([192.168.103.198]) by mail.decim.com (Lotus SMTP MTA v4.6.2 (693.3 8-11-1998)) with SMTP id 41257007.0053B839; Fri, 20 May 2005 16:14:26 +0100 Message-ID: <428DF0E5.7000107@denzir.com> Date: Fri, 20 May 2005 16:15:01 +0200 From: =?ISO-8859-1?Q?Magnus_Sirvi=F6?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: Re: [digester] NodeCreateRule problem with jdk1.5.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-dataductus-MailScanner-Information: Please contact the ISP for more information X-dataductus-MailScanner: Found to be clean X-dataductus-MailScanner-SpamCheck: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No I'm not using any endorsed libraries. Jos� Antonio P�rez Testa wrote: >Do you have endorsed libraries in some of the jdk? > >Magnus Sirvi� wrote: > > > >>Hi, >> >>I have problems using NodeCreatRule to extract some xml when using >>jdk1.5.0_02. When I use jdk1.4.2_08 it works as expected. Any hints? >> >>Windows XP, commons-digester-1.6, commons-beanutils-1.7.0, >>commons-logging-1.0.4 >> >>This is my simple test: >> >>import org.apache.commons.digester.Digester; >>import org.apache.commons.digester.NodeCreateRule; >>import java.io.StringReader; >> >>public class NodeCreateRuleTest >>{ >> private final static String TEST_XML = >> "ROOT BODYALPHA BODY" + >> "BETA BODYGAMMA BODY"; >> >> public static void main(String[] args) >> { >> try >> { >> Digester digester = new Digester(); >> digester.setValidating(false); >> digester.addRule("root/alpha", new NodeCreateRule()); >> Object result = digester.parse(new StringReader(TEST_XML)); >> System.out.println(result); >> } >> catch(Exception e) >> { >> System.err.println(e.getMessage()); >> } >> } >>} >> >>Output with jdk1.4.2_08: >>ALPHA BODY >> >>Output with jdk1.5.0_02: >>[alpha: null] >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> >> > > >-- > >Jos� Antonio P�rez Testa >Ingenier�a de Servicios e Innovaci�n t�cnologica. > >Tel�maco 3 >28027 - Madrid (ESPA�A) >Tel: +34-91-480.81.12 > >japtesta@indra.es >www.indra.es > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org