Hi
I was wondering what was the best way to save data ( I need to later use this data in an Information Exchange Process with an external system)from the xforms:value part of the itemset of a select (checkbox/radios/dropdowns) in the xforms instance. For instance I have a large group of checkboxes (about 20 of them). I can select from 0 to all 20 of them. I can change my mind and deselect some of them and in the end I might have say, 15. I may change my mind again and select 2 more. The final count of selected checkboxes may then be 17. How can I gather up data related to these 17 checkboxes in my XML instance efficiently. Could the xforms-select and xforms-deselect part of this mechanism of trying to get usable instance data?
As part of the solution I need to have the following:
1) A schema
2) The XForm
3) A Servlet to submit my data to.
thanks for any suggestions or samples

Hi, When you use a xf:select
Hi,
When you use a xf:select control, selected data is stored in the instance data as a space separated list of values eg.
Checking and unchecking check boxes will append to/remove from the instance data as you go.
There's a 'HOWTO' book page on this site for Processing XForms data on a server that explains how to get hold of any submitted xforms data. There's also a similar article in the IBM developerworks site too.
How you process the data on the server is up to you but, I think, in Java you could probably use something like StringTokenizer or some sort of array related classes/methods.
Hope this helps,
Alex
xf:select methods
Thanks for the information. I think it definitely helps.