Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How is xml parsing done in as400 ( ibm-i )?


Asked by Oakleigh Vasquez on Dec 15, 2021 XML



If you are new in working with XML in AS400 or just starting to do some XML parsing, this article will be useful to you. XML-INTO is the op-code used to parse the XML document and retrieve the values directly into the variables in RPGLE. Previously I saw many examples using DOM parser but it is complex for any beginners.
And,
XML parsing in AS400 (IBM-i) using XML-INTO Random Thoughts!!! If you are new in working with XML in AS400 or just starting to do some XML parsing, this article will be useful to you. XML-INTO is the op-code used to parse the XML document and retrieve the values directly into the variables in RPGLE.
Consequently, XML-INTO is the op-code used to parse the XML document and retrieve the values directly into the variables in RPGLE. Previously I saw many examples using DOM parser but it is complex for any beginners. But IBM introduced XML-INTO op-code and made the XML parsing much easier.
Furthermore,
When the handler returns, the parser will continue to parse the XML data until it has parsed enough XML data to again fill the specified number of array elements to call the handling procedure. This continues until the document is completely parsed, or until the procedure returns a return code indicating that the parsing should halt.
Besides,
Start by creating a new XML template in IFS. We may want to use the .xml suffix in this new file (e.g: /myIFSdir/salesReportIFS.xml ). In this way we can quickly identify an xml template from an html template. This naming convention is only a matter of convenience.