The PLISAXA built-in subroutine allows you to invoke the XML parser for an XML document residing in a buffer in your program.
>>-PLISAXA(e,p,x,n-+----+-)------------------------------------>< '-,c-'
Note that if the XML is contained in a CHARACTER VARYING or a WIDECHAR VARYING string, then the ADDRDATA built-in function should be used to obtain the address of the first data byte.
Also note that if the XML is contained in a WIDECHAR string, the value for the number of bytes is twice the value returned by the LENGTH built-in function.