My shop will soon be converting to Natural 4.2. I am currently using a test library, and trying to parse an .xml file. I am using a sample code that is used throughout the forum and natural help; very simple :roll:
I get this error: NAT8312 ‘Error during XML parser processing, reason 5: Unsupported encoding is used.’
Is there something perhaps in the installation/administration of 4.2 that needs to be added, or an object added to the STEPLIB (pre-processing) objects within the library where my program object resides?
Object code:
DEFINE DATA LOCAL
01 XML-DOC (A) DYNAMIC
01 XML-DATA (A) DYNAMIC
01 #XML-PATH (A) DYNAMIC
01 #XML-NAME (A) DYNAMIC
01 #XML-VALUE (A) DYNAMIC
END-DEFINE
FORMAT LS=120 PS=40
XML-DOC := "C:\TEMP\TESTXML.XML"
PERFORM W3READ-RESOURCE ' ' XML-DOC XML-DATA
PARSE XML XML-DATA INTO PATH #XML-PATH
NAME #XML-NAME
VALUE #XML-VALUE
DISPLAY #XML-PATH (AL=60)
#XML-NAME (AL=15)
#XML-VALUE (AL=30)
*PARSE-TYPE
END-PARSE
END
Any help would be greatly appreciated.
thankyou, gtb