Page 1 of 1
Parsing issue XML/JSON input RESOLVED
Posted: Fri Jul 14, 2017 8:47 pm
by TimStone
The original problem was due to receiving a file with LF only after each entry rather than CRLF, and MEMO functions were not working properly. This part of the problem was resolved. However, a new post discusses the need for more info for using the XML capabilities of FWH / Harbour ( or xHarbour )
Re: Parsing issue XML/JSON input
Posted: Sat Jul 15, 2017 10:08 am
by gkuhnert
Tim,
are you sure, that each line ends with CRLF (or CHR(10)+CHR(13))? Maybe it just ends with one of these symbols and you could replace each CHR(10) or CHR(13) with a CRLF first?
Re: Parsing issue XML/JSON input
Posted: Sat Jul 15, 2017 4:51 pm
by TimStone
Looking at the file, it only has CHR(10) - line feed ...
I'm trying to work with the XML functions now to see if that will work out.
Tim
Re: Parsing issue XML/JSON input
Posted: Sat Jul 15, 2017 6:52 pm
by gkuhnert
then maybe this might work:
cRet := strtran(cRet, CHR(10), CRLF)
Re: Parsing issue XML/JSON input RESOLVED
Posted: Sun Jul 16, 2017 5:50 pm
by TimStone
That resolves the problem. Thank you.