XML-INTO And Optional Elements
February 23, 2016 Hey, Jon
Note: The code accompanying this article is available for download here. I am working on an RPG program that does some very basic pre-processing of an XML document before passing it along to another program for final processing. Even though my program works, it fills up the job log with error messages. Can you help me get rid of them? The XML is structured like this. <Message> <Payload> <Event>. . . </Event> </Payload> </Message> The <Payload> element can contain a child element of <Event>, <Report>, or <Parameter>. Only one of these elements is ever contained in the message at |