I setup a simple progress program to parse XML files and it works well for most of the files. There are however some files that have fairly long strings of data in one of the nodes and I get an error when I try to assign the value from that node to a character variable. I am working with Progress 9.1B so I do not have access to the LONGCHAR data type. Is there a workaround to this limit that I can use for now as upgrading it not very feasible. A simplified version of the section of code where the error occurs looks as follows
DO i = 1 TO gh001:NUM-CHILDREN:
gh001:GET-CHILD(gh002,i).
IF gh002:NAME = "body" THEN
DO:
gh002:GET-CHILD(ghtext,1).
vcparagraph = TRIM(vcparagraph) + TRIM(ghtext:NODE-VALUE).
END.
END
The error I get is "x-noderef or x-document NODE-VALUE got an error: string length too long. (9083)"
DO i = 1 TO gh001:NUM-CHILDREN:
gh001:GET-CHILD(gh002,i).
IF gh002:NAME = "body" THEN
DO:
gh002:GET-CHILD(ghtext,1).
vcparagraph = TRIM(vcparagraph) + TRIM(ghtext:NODE-VALUE).
END.
END
The error I get is "x-noderef or x-document NODE-VALUE got an error: string length too long. (9083)"