Default data import
When there is no import template assigned to a DataWindow object
with the UseTemplate property, PowerBuilder attempts to import the
data using the default mechanism described in this section.
Elements that contain
text
The text between the start and end tags for each element can be
imported if the XML document data corresponds to the DataWindow column
definition. For example, this is the case if the XML was exported from
PowerBuilder using the default XML export template.
The text content of the XML elements must match the column
order, column type, and validation requirements of the DataWindow
columns. (The same restriction applies when you import data from a
text file with the ImportFile method).
All element text contents are imported in order of occurrence.
Any possible nesting is disregarded. The import process ignores tag
names of the elements, attributes, and any other content of the XML
document.
Empty elements
Empty elements (elements that have no content between the start
and end tags) are imported as empty values into the DataWindow 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.