Write a ProDataSet to XML
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The following code sample writes a ProDataSet to an
XML file. This is a snippet of the setup code showing the ProDataSet
definition (note the NESTED options):
|
The NESTED option cannot be used when min-xmlschema optional
parameter is TRUE. The following is a code sample
for a simple XML write from a static ProDataSet:
|
This example uses the NESTED option, and is
a snippet of the resulting XML demonstrating what it does:
|
Note that the ttEmp row associated with employee number
3 of department 400 is nested within ttDept row for
department 400 and that the rows from the ttFam table
associated with employee number 3 are included within the ttEmp element.
Remove the NESTED keywords from the setup code and
run it again. The resulting XML file now listed all rows from one
table then all rows from the next table, and so on. The following
is a condensed version of the XML highlighting this point:
|