Try OpenEdge Now
skip to main content
Working with XML
Reading and Writing XML Data from Temp-Tables and ProDataSets : Reading XML into a temp-table, temp-table buffer, or ProDataSet : Reading before-image data for ProDataSet temp-table buffers from XML
 

Reading before-image data for ProDataSet temp-table buffers from XML

The read and write XML methods support before-image tables in ProDataSets. If the ProDataSet has defined before-image tables, then they will be handled appropriately:
*If a ProDataSet has before-tables and the READ-XML( ) method finds before-image data in the XML data, then that data is read in. Before-image data can be in one of two formats:
*ABL before-image format
*Microsoft DiffGram format
*If a static ProDataSet member buffer does not define a before-image table and the XML data contains before-image data for that buffer, then READ-XML( ) fails.
*If the READ-XML( ) method reads data into a dynamic ProDataSet and detects before-image data for one or more of the temp-table buffers, then the method automatically creates a before-image table for each buffer with before-image data.