www.krengeltech.com

RXS_allElemContentHandler

From Wiki

User Guide

Contents

Description

Call this subprocedure before RXS_parse to tell the parser to notify a specific subprocedure of your program every time it encounters the content for any element in the document (e.g. <element>I am the content</element>). When the parser encounters element content, it will send the content value to the handler specified in pHandler.

Prototype

     D RXS_allElemContentHandler...
     D                 pr
     D  pHandler                       *   value procptr

Parameters

pHandler
The address of the local subprocedure in your program that the parser should call when it encounters any element’s content. Use the %PADDR (Get Procedure Address) RPG BIF to obtain the address of the local subprocedure (e.g. %PADDR(myHandler)).

Return value

None.

Notes / Examples

Using this approach saves coding time when a program will retrieve a majority of the element content.