Working with XML in RPGLE : XML-SAX
Working with XML in RPGLE : XML-SAX Working with XML has never been easier before IBM's introduction of XML-INTO and XML-SAX compatibility to RPGLE. My earlier post did contain detailed info about basics on XML with RPGLE and compatibility of XML-INTO with RPGLE along with its own advantages and disadvantages. If you haven't gone through them yet, Click on those links to have quick look. XML-SAX: Even though XML-INTO provides the greatest comfort to programmers by directly bringing the data to Respective variable/data structure. But, this doesn't help programmers when the XML elements/data has been inconsistent. XML-SAX is the best way of handling such XMLs. This will read the XML character by character and calls Handling Procedure when the even gets triggered. Syntax: Xml-Sax(e) %Handler(XMLHandler_Procedure : CommsArea_DataStructure ) %XML(wXmlString: 'doc=string') Below are some possible events that can occur while parsing XML. This has been split by the phas...