Parsing issue XML/JSON input RESOLVED

Parsing issue XML/JSON input RESOLVED

Postby TimStone » Fri Jul 14, 2017 8: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 )
Last edited by TimStone on Sun Jul 16, 2017 5:49 pm, edited 3 times in total.
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
User avatar
TimStone
 
Posts: 2897
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Parsing issue XML/JSON input

Postby gkuhnert » 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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Parsing issue XML/JSON input

Postby TimStone » Sat Jul 15, 2017 4: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
User avatar
TimStone
 
Posts: 2897
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Parsing issue XML/JSON input

Postby gkuhnert » Sat Jul 15, 2017 6:52 pm

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

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Parsing issue XML/JSON input RESOLVED

Postby TimStone » Sun Jul 16, 2017 5: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
User avatar
TimStone
 
Posts: 2897
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 20 guests