Thank you, I will remember to place
[code]
and
[/code]
next time around the code. Still learning the rule on posting to the site. I did try to use the count prefix and still had the "Parsing error code 2". I also changed the %XML options to case=convert and removed the allowextra=yes and allowmissing=yes and the trim=all. The name space was removed as I sub-string the parsing sting to start with the <result> tab to the end of the xml data.
The xml is a file received to the IFS after an HTTP request for the card information. When I view the IFS file it is one long string of data, displayed in a block of several lines. I copied this to note pad so I could break it down to the tag groups. All the data structures load until the array data structure that is set to an array of 10 and the data sent is only two elements and they load. Then the program blows with the parsing error.
I use the '_C_IFS_fopen' as read only and '_C_IFS_fgets' to read the data and of course the '_C_IFS_fclose' to close the file.
Code: Select all
FilePTR = OpenFile(%addr(PathFile):addr(OpenMode)'
Dow (ReadFile(%addr(RtvData):32767:FilePtr) <> *null);
RtvDate = %xlate(x'00' : ' ' :RtvDate); //End of record null
RtvDate = %xlate(x'25' : ' ' :RtvDate); //Line feed (LF)
RtvDate = %xlate(x'0D' : ' ' :RtvDate); //Cariage return (CR)
This is different than the old unix command, that should not be an issue ,Right?
When I am in debug, I see the 2 elements do load to the array and then the error happens.
Thank you for all your advice. Onie