Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 41925 invoked from network); 12 Feb 2004 11:19:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Feb 2004 11:19:26 -0000 Received: (qmail 26351 invoked by uid 500); 12 Feb 2004 11:18:53 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 26329 invoked by uid 500); 12 Feb 2004 11:18:53 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 26314 invoked from network); 12 Feb 2004 11:18:53 -0000 Received: from unknown (HELO hqexch01.upstate.com) (205.160.101.145) by daedalus.apache.org with SMTP; 12 Feb 2004 11:18:53 -0000 Received: from IQUITOS (ciaranlaptop.ltd.upstate.com [172.17.1.104]) by hqexch01.upstate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1YJKY8AF; Thu, 12 Feb 2004 06:20:48 -0500 Reply-To: From: "Eric Pugh" To: "'Jakarta Commons Users List'" Subject: RE: [Configuration] Problems with properties containing integers in the name Date: Thu, 12 Feb 2004 12:19:06 +0100 Message-ID: <000d01c3f15a$076dc190$657ba8c0@IQUITOS> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi.. Could you file a bug for this? A failing unit test would be even better. As far as the XML, are you saying that in xml, this is a valid tag: but this is not: <1myTag> or <1>? Odd, but if that is true, we should document that short coming. In terms of fixing it, I don't think their is anything to do... As far as your subset problem, could you submit a test case? Not quite sure I understand what the problem is... Eric > -----Original Message----- > From: Guillaume Nodet [mailto:guillaume.nodet@deliasystems.com] > Sent: Wednesday, February 11, 2004 2:28 PM > To: commons-user@jakarta.apache.org > Subject: [Configuration] Problems with properties containing > integers in > the name > > > I've tried to use the configuration component but ran into > the following > problems. > I wanted to export a configuration (stored in a .properties > file) to an xml. > The problem is that i had some properties like this: > xxx.yyy.1=zzz1 > xxx.yyy.2=zzz2 > ... > > Two problems arose: > * the xml syntax does not support tag beginning by a numeric > character, > so the <1>, <2> tags are not valid > * my list of properties contained more than 10 items and the > subset method > returned bad things. The subset method does not check for > a '.' at the > end of the prefix, so that xxx.yyy.10.zzz was returned > when asking for a > subset > beginning with 'xxx.yyy.1'. > > Regards, > > Guillaume Nodet > > > > --------------------------------------------------------------------- > 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