Title: Message
Hello,
 
We've been using castor for a while now, and we've come up with the need to marshall/unmarshall XML structures that may contain variable or arbitrary XML data.
 
Part of the XML structure will be known, and another part will be "user defined" at runtime and therefore variable in it's structure. (like user defined values)
 
 
What would be a good approach for getting this to work?
 
I was thinking of a few approaches:
 
- using a property bag approach- values are stored in HashMaps instead of discrete bean properties;
- dynamically code-gen a java class and mapping file at runtime and using reflection to read the values (ugly)
-???
 
I don't think this is an uncommon scenario- I hope someone has already put some thought into this.
 
Thanks for any help.

Reply via email to