W3C home > Mailing lists > Public > www-forms@w3.org > April 2004

Editing XML in Forms

From: Gary Stewart <gary@deltagreen.co.uk>
Date: Mon, 5 Apr 2004 11:05:35 +0100 (BST)
To: www-forms@w3.org
Message-ID: <Pine.LNX.4.21.0404051035430.15733-100000@riff.albionsoft.com>

I was wondering about editing XML in, say a textarea, in XForms. I suspect
that there is no easy way to do this as it is a requirement for XForms 1.1
(Section 2.4 "XForms Processor as XML Editor").

Has anyone tried any solutions for this? I could write a backend script
that upon submit, transforms entity data back into characters (though
might result in an invalid XML document so it might have to be
revalidated). However this would only work where this isn't then required
to be read by an XForms form (you wouldn't be able to "re-edit" the
document without first performing a character to entity on the relivent
parts).

Is my understanding correct about the methods required to edit XML data?

Thanks,

Gary
Received on Monday, 5 April 2004 06:05:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:57 GMT