XFA Specification
Chapter 13, Dealing with Data in Different XML Formats
Extended Mapping Rules
385
[dataValue (ISBN) = "15536455"]
[dataValue (title) = "Introduction to XML"]
[dataGroup (author)]
[dataValue (firstname) = "Charles"]
[dataValue (lastname) = "Porter"]
Because
dissolve
also modifies the XML data DOM, when the data unloader creates a new XML data
document the new document reflects the
dissolve
operation. In this case the resulting XML data
document contains:
<item>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<author>
<firstname>Charles</firstname>
<lastname>Porter</lastname>
</author>
</item>
The following example suppresses all data group mapping within the
book
element, expressed in the XFA
configuration document as:
<transform ref="book">
<presence>dissolveStructure</presence>
</transform>
The result of the mapping is as follows:
[dataGroup (item)]
[dataGroup (book)]
[dataValue (ISBN) = "15536455"]
[dataValue (title) = "Introduction to XML"]
[dataValue (firstname) = "Charles"]
[dataValue (lastname) = "Porter"]
Because
dissolveStructure
also modifies the XML data DOM, when the data unloader creates a new
XML data document the new document reflects the
dissolveStructure
operation. In this case the
resulting XML data document contains:
<item>
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<firstname>Charles</firstname>
<lastname>Porter</lastname>
</book>
</item>
The data loader does not issue a warning when
ignore
or
dissolve
is suppressed at the root node,
because the same element type may legitimately appear other places in the XML data document.
The range Element
This section describes an extended mapping rule to specify a subset of records for processing.
By default the data loader processes all records in the XML data document. However, the XFA
Configuration DOM may contain a
range
element, which specifies a set of record indices. See
“Config
Home Index Bookmark Pages
Pages: Home Index All Pages