RXS_DOMCleanup()
NOTE: The RXS_DOM* APIs were created to allow for a different approach to parsing XML documents. Depending on the complexity of your XML and what data elements you are parsing, the RXS_DOM* APIs can make the syntax for parsing simpler. The simpler syntax comes with a cost because the entire XML document is parsed and stored in memory so you can access any element data at any time (think of it as being able to “CHAIN” to the XML structure - random access). Performance for smaller XML files is comparable for the two XML parsers within RPG-XML Suite, but the larger the XML file the bigger the divide. For example, a large 4MB XML file will take 200 seconds with the event based parser and 600 seconds with the DOM parser. So make sure to factor that into your decision on whether to use the RXS_DOM* APIs to parse or the event based parser.
Call this subprocedure to clean up any memory associated with DOM parsing operations. This procedure should be called after all DOM-related processing has finished. If it is not called, memory associated with DOM parsing will be freed when the job ends.
Subprocedure Prototype
|
Cleans up any memory associated with DOM parsing operations. If this is not called, memory associated with DOM parsing will be freed when the job ends. |