Chapter 4, Exchanging Data Between an External Application
and a Basic XFA Form
XFA Specification
Creating, Updating, and Unloading a Basic XFA Data DOM
126
The first element is also excluded from the document range, not on the basis of namespace but is it is an
XML processing instruction, as described above in
“XML Logical Structures” on page 122.
The result of mapping this XML data document, assuming the XFA Configuration DOM specifies that
attributes are to be preserved, is as follows:
[dataGroup (invoice) isRecord="true"]
[dataGroup (item)]
[dataGroup (book)]
[dataValue (ISBN) = "15536455"]
[dataValue (title) = "Introduction to XML"]
[dataValue (quantity) = "1"]
[dataValue (unitprice) = "25.00"]
[dataValue (currency) = "us" content="metadata"]
[dataValue (discount) = ".40"]
[dataValue (trn:identifier) = "27342712"
xlmns="http://www.example.com/transaction/"]
The above example demonstrates the automatic exclusion of attributes having the
xmlns
prefix and of
attributes having the
xml
namespace prefix.
Record Elements
Some XML data documents enclose repeating groups of data, each with different content. This
specification refers to these repeating groups of data as
records.
Typically a record holds the data from a
single form instance.
By default, the data loader considers the document range to enclose one record of data represented by
the first (outermost) data group within the document range.
Consider the following XML data document:
<order>
<number>1</number>
<shipto>
<reference><customer>c001</customer></reference>
</shipto>
<contact>Tim Bell</contact>
<date><day>14</day><month>11</month><year>1998</year></date>
<item>
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<author>
<firstname>Charles</firstname>
<lastname>Porter</lastname>
</author>
<quantity>1</quantity>
<unitprice>25.00</unitprice>
<discount>.40</discount>
</book>
</item>
<item>
<book>
<ISBN>15536456</ISBN>
<title>XML Power</title>
<author>
Home Index Bookmark Pages
Pages: Home Index All Pages