Progress
External Program
Interfaces
Reading XML Input Into the 4GL
In order to read in an XML file and process it, you must complete the following steps:
- Create an X-DOCUMENT object.
- Create a root node reference object.
- Use the LOAD( ) method to read the input file.
- Use the GET-DOCUMENT-ELEMENT( ) method to get the root node reference handle.
- Create a node reference object.
- Using the GET-CHILD( ) method, read through the child nodes.
- Using the GET-ATTRIBUTE( ) METHOD, the NAME attribute, the NODE-VALUE attribute and other attributes and methods, access the XML data.
- Update the database or other fields as necessary.
- Delete the objects.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |