XML Operations
The XML operations include SAX parsing and reading an XML document directly into a variable.
The XML operations are:
- XML-SAX (Parse an XML Document)
- XML-INTO (Parse an XML Document into a Variable)
- %XML (xmlDocument {:options})
- %HANDLER (handlingProcedure : communicationArea )
The %HANDLER and %XML built-in functions are special built-in functions that do not return a value. They can be used only with the XML operation codes XML-SAX and XML-INTO.
XML-SAX initiates a SAX parse that repeatedly calls your SAX-handling procedure to handle events.
XML-INTO copies the information in an XML document into a program variable.
For XML documents with many repeated XML elements, it can be used to handle a limited number of XML elements at a time, having the elements passed to your XML-INTO handling procedure.
For more information about processing XML documents in your RPG programs, see Rational Development Studio for i: ILE RPG Programmer's Guide.