Title: JDOM/DOM Node as Field?

Here's what I'd like to do:

I have an element with extensible content called 'description'.  In
that content there will most likely be XHTML, but there could be any
kind of well-formed XML.

I really want to tell castor to bind that element to a DOM or
JDOM element subtree.

Is this possible?  Has anyone tried this?

I don't mind writing some code to plug-in to this infrastructure
but I don't see how the current field-mapping code can accomplish
this.  It seems to assume that sub-elements will make to fields
of the class being instantiated.

What I really need to do is just replace the content handler with
one that will build a whole DOM/JDOM element subtree and then
set that as the value of the field for the 'description' element.

-- Alex Milowski

Reply via email to