-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I stuck trying to read more then one bean out of one single file using
betwixt, i think that this have to be really simple but i still can't
get it working, maybe you can help figuring out my mistake:
I have a xml file with my bean stored in which looks like that:
<?xml version='1.0' ?>
<configuration>
<description>TestDescription</description>
</configuration>
Out of this file i can read my bean without problems:
beanReader.registerBeanClass("configuration", TestBean.class);
TestBean testConfig = (TestBean) beanReader.parse(fileContent);
But now i want to store additional beans into the same xml file, and get
them out of this file also.
My first try was something like that:
<?xml version='1.0' ?>
<configuration>
<description>TestDescription</description>
</configuration>
<additional>
<description>TestDescription</description>
</additional>
and then read the data out:
beanReader.registerBeanClass("additional", AdditionalBean.class);
AdditionalBean additionalConfig = (AdditionalBeanBean)
beanReader.parse(fileContent);
But then the xml parser throws a exception because the xml is not
well-formed.
I can't find an example to do that in the correct way, but i think that
hasnt to be really complex, i just can't figure out the correct technique.
Can somebody give me a hint or can tell me how to get this working?
Any help would be highly appreciated,
Thanks in advance,
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFChIlDnPtETagUFaYRAnSvAJ4swOiQsU7uMI8+JUMb7JoxaEI1NQCfRb4e
TQfFgLuSBoux8FoqXSLTRW4=
=kTLQ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]