commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sven Schliesing" <s...@schliesing.de>
Subject [configuration] certain format with XmlConfiguration
Date Wed, 24 May 2006 13:36:46 GMT
Hi,

I'm trying to achieve a format for my config-file that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <users>
    <user>
      <name>John</name>
      <password>abc123</password>
    </user>
    <user>
      <name>Mary</name>
      <password>xyz123</password>
    </user>
  </users>
</configuration>

or like this:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <users>
    <user name="John" password="abc123"/>
    <user name="Mary" password="xyz123"/>
  </users>
</configuration>

But I'm totally stuck in the XmlConfiguration's methods. Is this format
possible at all?

Any help is appreciated!

Thanks,

Sven


---------------------------------------------------------------------
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