I have a vendor whose XML has - in the xml element and cannot find a way to handle it. Can't have - in an rpg variable name and looking at the xml-into options I cannot see anything to handle it. Am I missing anything?
Code:
Dcl-S testXml varchar(32000); Dcl-Ds test; testvalue varchar(50); End-Ds; testXml = '<test><test-value>test it</test-value></test>'; xml-into test %xml(testXml:'case=any'); dsply testvalue;
Comment