Hi Abbas,

On Jan 27, 2007, at 6:29 AM, Abbas Mousavi wrote:

 Is there any XML data type for field?

Unfortunately not. It sounds like it might be a good idea though, you should submit a feature request via JIRA

If you decide to make an xml datatype, follow the patterns you find in package org.apache.cocoon.forms.datatype.typeimpl and cocoon.xconf. You may find the classes in package org.apache.cocoon.xml (e.g. XMLUtils, StringXMLizable, etc.) to be helpful in implementing your datatype.

Otherwise, just keep the datatype="string" and don't bind it to your XML document, but instead parse the string to a Node in your flowscript and insert/replace it in the document. Will that work?

HTH,
—ml—


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to