Expand my Community achievements bar.

XML Export

Avatar

Level 1

I have created form and binding it with XSD Schema by livecycle designer.

When I exported the data from the form, it exported all field as defined in the schema.

However, that xml is invalid with schema because there is a field tag with no value.

Is it possible that setting some fields in a form to not export an xml if there is no value in that filed?

1 Reply

Avatar

Level 10

Hi,

If you have defined your XML schema element as minOccurs 0 and it has simple content them then is should not be exported if the value is null.

This process is described in John Brinkman's blog http://blogs.adobe.com/formfeed/2009/12/null_data_handling.html

If you element has complex content (attributes or child elements) then you will have to edit the data description in the XML Source view of Designer or you can try running the macro described in this blog, Adobe LiveCycle Designer Cookbooks by BR001: XML Schema minOccurs="0" handling

Regards

Bruce