Hi, i am new to castor and was wondering how to tackle this problem:
I am getting an object returned from some other system (i can't change it) and it has dozens of properties, some of which are of type javax.sql.rowset.CachedRowSet. I have a lot of hand-written code to render this object to xml, which i am hopeing to replace with castor. (I am only interested in marshalling, not un-marshalling.) So i wrote a mapping file and the simple properties are coming though great. Thank you castor team... lots of code removed and looking good so far! (Especially helpful was the ability to specify a 'location'.)
But now i need to tackle the CachedRowSet(s). In the current system i have a class that handles mappings of row sets to xml. You specify some configuration that defines the element name for each row, which columns map to which xml elements, any formatters to apply and a few other bits and pieces.
So i'm looking at creating a custom field handler, but have some questions:
My specific questions are: 1) Can a custom field handler generate a 'substructure', or 'fragment' of xml? If so, how? 2) Does the field handler get some contextual info, specifically i would need the property name that was being rendered?
And i guess my general question would be the subject.
Any hints, tips, examples, or "here's how you do it" would be very much appreciated !
Thanks... - Richard.
_________________________________________________________________
Personalise your mobile chart ringtones and polyphonics. Go to http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
