FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Parsing issue XML/JSON input RESOLVED
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Parsing issue XML/JSON input RESOLVED
Posted: Fri Jul 14, 2017 08:47 PM

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 )

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: Parsing issue XML/JSON input
Posted: Sat Jul 15, 2017 10:08 AM

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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Parsing issue XML/JSON input
Posted: Sat Jul 15, 2017 04:51 PM

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: Parsing issue XML/JSON input
Posted: Sat Jul 15, 2017 06:52 PM

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

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Parsing issue XML/JSON input RESOLVED
Posted: Sun Jul 16, 2017 05:50 PM

That resolves the problem. Thank you.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion