Just wondering if it is possible to get extra elements and put them into a data structure for processing. Hopefully this makes sense.
Code:
Dcl-S inXml varchar(32000); Dcl-Ds test qualified; item char(12); Dcl-Ds elements dim(10); name varchar(100); value varchar(100); end-Ds; End-Ds; inxml = '<test><item>abcdef</item><field1>test1</field1><field2>test2 + </field2></test>'; xml-into test %xml(inxml); //test.elements(1).name would be field1 //test.elements(1).value would be test1 //test.elements(2).name would be field2 //test.elements(2).value would be test2
Comment