That won't be possible wit Castor, as far as I can tell. As long as your
HTML is XHTML compliant, you will have content attached to the <data>
element. You could try with a node="text" binding, but I am not sure
this will work (due to the '<' and '>'s).

Werner

arteta wrote:
> Hi,
> 
> I have a use case where I wan't to bind html to a string. The xml looks like
> this
> 
>                                                               <data>   <head>
>                                                                               
> <title>              </title>
>                                                                               
> <meta name="description" content=""/>
>                                                                               
> <meta name="keywords" content=""/>
>                                                                               
> <link type="text/css" rel="STYLESHEET" href="../css/site.css"/>
>                                                                               
> <script src="../quickedit/quickedit.js" type="text/javascript"/>
> 
> <data>
> 
> Where I want to read the content of the data tag into a string.  My mapping
> looks like this:
> 
>         <field name="data" type="java.lang.String" required="false"
> direct="false">
>             <bind-xml name="data" node="element"/>
>         </field>
> 
> However because of the tags it will not bind. But If I use straight text
> then it will. Any ideas on how to bind HTML?
> 
> Thanks,
> J

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to