commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zsolt Koppany" <zkoppanyl...@intland.com>
Subject How to parse this configuration?
Date Mon, 14 Mar 2005 20:47:41 GMT
Hi,

how can I parse the following configuration?

<file>
	<group description="Web" extensions="asp,aspx,phtml,shtml,php"
		parser="-" type="w"/>

      <group description="XML" extensions="xml,tld" parser="-" type="x"/>
</file>

My code is:

	XMLConfiguration config = new XMLConfiguration(configFile);

I would like to get the "file.group" tags as a list or as an array but I
need the corresponding "description", "parser" etc.

I had no success with config.getList().

I use common-configuration-1.0 with jdk-1.4.2-07

Zsolt




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message