![]() |
Overview
RPG IV's native XML parsing support provides good news for those faced with processing XML documents from web services or data interchange. This support greatly simplifies the parsing XML within your RPG programs.
In this seminar we'll discuss the two types of XML parsing support offered in RPG and the new operation codes that provide that support. We will also provide you with a brief overview of V5R2's Nested Data Structure support which is an essential component of the XML support.
Approximate Study Time: 2 hours
Objectives
After completing this seminar, you should be able to:
- Describe the differences between the two XML parser options offered, and when one might use one or the other
- Understand the purpose of the %XML and %HANDLER Built-in Functions (BIFs)
- Identify the RPG Data Structure(s) (DS) required to match the structure of an XML document
Topic Outline
Basic use of XML-INTO and the %XML BIF
Handlng more complex XML documents
Using %HANDLER to process an XML document in "pieces"
Defining a compound DS to match XML document structure
Overview of limitations of XML-INTO support
Introduction to the basics of XML-SAX
Audience
This seminar is designed for RPG programmers who need to generate and parse XML documents from within RPG programs.
Prerequisites
This seminar assumes you have a basic understanding of XML syntax to the level provided by RPG in an XML World. You should also know how to create compound (nested) data structures in RPG.

