The PLISAXD built-in subroutine allows you to invoke the XML parser with the validation capability. Both the XML document and the Optimized Schema Representation (OSR) file are in one or more buffers in your program.
>>-PLISAXD(e,p,x,n,o-+----+-)---------------------------------->< '-,c-'
If the XML is contained in a CHARACTER VARYING or a WIDECHAR VARYING string, the ADDRDATA built-in function should be used to obtain the address of the first data byte.
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.