Parsing issue XML/JSON input RESOLVED

Post Reply
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Parsing issue XML/JSON input RESOLVED

Post 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 )
Last edited by TimStone on Sun Jul 16, 2017 5:49 pm, edited 3 times in total.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Parsing issue XML/JSON input

Post 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?
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Parsing issue XML/JSON input

Post 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
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Parsing issue XML/JSON input

Post by gkuhnert »

then maybe this might work:
cRet := strtran(cRet, CHR(10), CRLF)
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Parsing issue XML/JSON input RESOLVED

Post by TimStone »

That resolves the problem. Thank you.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Post Reply