Re: Is editing of literal XML supported using XForms?

> Overall I am quite pleased by the extent to which XForms 1.0 supports
> this activity.  However, I am curious whether or not XForms permits
> the user to edit XML data directly, e.g., in a big old textarea with
> a lot of angle brackets in it.  I see this as useful primarily in a
> fall-back mechanism supporting direct editing of the XML resource when
> there is, as yet, no vocabulary specific XForm for that purpose.  This
> was something that you could do in the HTML FORM, but it seems like the
> use of XPath to identify an updatable binding in the XML instance data
> might make this no longer possible.

I am pretty certain that it doesn't allow direct editing of XML data.
However you can write XML data in a text area which is then escaped to
character data, therefore you could also populate an instance with XML
data by escaping the data you want inserted.

It was also something that I tried to do with XForms (when designing a
form that could add any tags to a HTML "header" space) see
http://lists.w3.org/Archives/Public/www-forms/2004Apr/0006.html.

I'm not sure whether it would be feasible or not to try and make it an
XForms 1.1 requirement, or whether the committee sees it as a useful
feature.

Hope this information was helpful, 

Gary

 

Received on Monday, 31 May 2004 08:04:13 UTC