XFA Specification
Chapter 16, Config Specification
Config Element Reference
690
The ifEmpty element
This option controls the representation of empty elements in the XFA Data DOM.
<ifEmpty
Properties:
desc="cdata"
>
...pcdata...
</ifEmpty>
The ifEmpty element is used within the following other elements:
transform
This option applies only to empty elements with tags that match the value of the
ref
attribute of its
enclosing
transform
element.
This option takes effect during the data-load phase. When the content is
ignore
it also causes data from
the XML Data DOM to be blended with data from the XFA Data DOM during the data-unload phase.
For more information about this element see
Extended Mapping Rules.
Content
The content must be one of the following:
dataValue
The empty element is represented in the XFA Data DOM by a dataValue node.
dataGroup
The empty element is represented in the XFA Data DOM by a dataGroup node.
ignore
The empty element is omitted from the XFA Data DOM.
remove
The empty element is omitted from the XFA Data DOM and removed from the XML Data DOM.
When the updated data is written out during the data-unload phase, the empty element will be
omitted from the new XML document.
DataValue and dataGroup nodes are discussed in
Extended Mapping Rules.
The desc property
An attribute to hold human-readable metadata.