Specifications
Importing XML
396 InfoMaker
Empty elements
Empty elements (elements that have no content between the start and end tags)
are imported as empty values into the report column. If the element text
contains only white space, carriage returns, and new line or tab characters, the
element is treated as an empty element.
Any attributes of empty elements are ignored.
Elements with
non-text content
If the element has no text content, but does contain comments, processing
instructions, or any other content, it is not regarded as an empty element and is
skipped for import.
Example with no empty elements
The three XML documents that follow all show the same result when you
select Rows>Import in the Report painter. The Preview view must be open and
selected to enable the Rows>Import menu item.
The report has five columns:
emp_id, emp_fname, emp_lname, phone, and
birth_date.
Example 1
This example contains two rows, each with five elements that match the
column order, type, and validation requirements for the report.
<?xml version="1.0"?>
<d_emp_birth_listing>
<d_emp_birth_row>
<element_1>105</element_1>
<element_2>Matthew</element_2>
<element_3>Cobb</element_3>
<element_4>6175553840</element_4>
<element_5>04/12/1960</element_5>
</d_emp_birth_row>
<d_emp_birth_row>
<element_1>148</element_1>