Castor : Utility -Marshaling an Object which contains java.util.Properties

K

Kannan

Hi,
I am trying to use Castor for marshalling my object. I have not
provided any mapping file as of now. The Object that i try to marshall
has a java.util.Properties. Basically the documentation at
http://castor.exolab.org/xml-mapping.html#3.-The-Mapping-File says
that when we have a hashtable all the keys and values are also
marshalled.

<?xml version="1.0" encoding="UTF-8"?>
<validator-configuration activated="true">
<selection-criteria ..........>
<xpaths empty="false"/>
<configured-properties empty="false"/>
</..
</....

Here xpaths and configured-properties are java.util.Properties objects
but they were not marshalled there is just a tag saying that empty
flag is false. I will need all key and values to be marshalled. Is
there any way i can achieve this.
Thanks,
Kannan Ekanath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top