FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Read XML page
Posts: 6
Joined: Wed Nov 23, 2005 05:14 PM
Read XML page
Posted: Mon Mar 13, 2006 02:40 PM

How can I read the content of an XML file?
The file that I can read is on-line, I have the URL and I must read the value of a tag. But if it's not possible read only a value I will happy to read all page and after I will extract it.
Thanks for all suggest...
Best Regards

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Read XML page
Posted: Mon Mar 13, 2006 04:06 PM

I have never done this but this old message may give you a clue.

From: "Byron Hopp" <bhopp@matrixcomputer.com>
Subject: Re: There is someone implementing SOAP or XML-RPC on xHarbour ?
Date: Saturday, May 08, 2004 4:29 PM

You can use the Microsoft Soap Toolkit (not the .net version) and it works
with xHarbour. I have connected to Google, iCusine, and some monetary
conversion service.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6
Joined: Wed Nov 23, 2005 05:14 PM
Read XML page
Posted: Mon Mar 20, 2006 08:13 AM

Thanks for your reply...but I'll prefer use only FWH and not external procedure...

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Read XML page
Posted: Mon Mar 20, 2006 05:13 PM

Ripa,

Take a look at \samples\twebclien.prg. This shows how to retreive a web page. After that you will have to write your own XML parser.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
Re: Read XML page
Posted: Fri Mar 24, 2006 04:10 PM

I have done XML (SOAP and other TAGs - both create and read) for Paysoft Inc., used to submit payroll returns to the IRS.

I can give you some clues here, and more info through private email.

In general, you'll have to download the web page (XML document),
and then read it partially (FOPEN-FREAD/FREAD/etc/FCLOSE)

If this is something you can do, then I can tell you how you may deal with this subject (how to read the TAG(s) you want).

Kind regards
Evans

Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
Re: Read XML page
Posted: Thu Apr 06, 2006 03:24 PM
E. Bartzokas wrote:I have done XML (SOAP and other TAGs - both create and read) for Paysoft Inc., used to submit payroll returns to the IRS.

I can give you some clues here, and more info through private email.

In general, you'll have to download the web page (XML document),
and then read it partially (FOPEN-FREAD/FREAD/etc/FCLOSE)

If this is something you can do, then I can tell you how you may deal with this subject (how to read the TAG(s) you want).

Kind regards
Evans


Does he work with https?

if yes and it can order help in my email: clemerson@sysfar.com.br

Clemerson
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
Re: Read XML page
Posted: Thu Apr 06, 2006 06:45 PM

Does he work with https?

if yes and it can order help in my email: clemerson@sysfar.com.br

Clemerson

Check your private email please.
Kind regards
Evans

Posts: 218
Joined: Fri Oct 07, 2005 01:55 AM
Read XML page
Posted: Fri Apr 07, 2006 10:54 AM

Hello

Could you send to me again?

Thank you.

Regards,

Richard

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Read XML page
Posted: Fri Apr 07, 2006 10:57 AM

Evans,

Please upload it to www.hyperupload.com and publish the download link here. Thanks.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion