Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 33919 invoked from network); 11 Feb 2004 13:28:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Feb 2004 13:28:06 -0000 Received: (qmail 44160 invoked by uid 500); 11 Feb 2004 13:27:54 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 44137 invoked by uid 500); 11 Feb 2004 13:27:54 -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 44086 invoked from network); 11 Feb 2004 13:27:54 -0000 Received: from unknown (HELO smtp4.clb.oleane.net) (213.56.31.20) by daedalus.apache.org with SMTP; 11 Feb 2004 13:27:53 -0000 Received: from nodulix ([81.80.231.9]) (authenticated) by smtp4.clb.oleane.net with ESMTP id i1BDRpm2028081 for ; Wed, 11 Feb 2004 14:27:53 +0100 From: "Guillaume Nodet" To: Subject: [Configuration] Problems with properties containing integers in the name Date: Wed, 11 Feb 2004 14:27:50 +0100 Message-ID: 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 IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal 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 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