Alex-

I did some quick tests this morning, and using a CustomFieldHandler (http://castor.codehaus.org/xml-fieldhandlers.html) I was able to "marshal" and "unmarshal" a DOM node, but as has been discussed on the list before, Castor performs entity replacement (lots of > <) so it doesn't look exactly how one would expect. I haven't been following the arbitrary XML discussion very closely, but that may be the larger challenge in this case.

Maybe someone else can comment on that other front.

Stephen


Alex Milowski wrote:

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


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to