Progress
External Program
Interfaces
Example 2 — Reading Customer Data and Writing a TEMP-TABLE
This example is a SAX version of the DOM example described in "XML Support," in this book. The example reads an XML file containing the Customer table from the Sports database and writes the data to a temp-table. The example uses qname, assumes there is no namespace prefix, and, for clarity, omits code for transaction scoping and for validation.
Here is the EPI SAX Example 2 driver procedure, e-sax2d.p.
Here is the EPI SAX Example 2 XML file, e-sax2.xml.
NOTE: There is no DTD and no use of namespace prefixes. The lack of a DTD means that the handlers need to validate the document, but the example omits that validation for the sake of clarity.Here is the EPI SAX Example 2 handler procedure, e-sax2h.p (1 of 3).
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |