Read XML page

Post Reply
ripa
Posts: 6
Joined: Wed Nov 23, 2005 5:14 pm
Location: Milan - Italy

Read XML page

Post by ripa »

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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.
ripa
Posts: 6
Joined: Wed Nov 23, 2005 5:14 pm
Location: Milan - Italy

Post by ripa »

Thanks for your reply...but I'll prefer use only FWH and not external procedure...
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: Read XML page

Post by E. Bartzokas »

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
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

Re: Read XML page

Post by clemerson »

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
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: Read XML page

Post by E. Bartzokas »

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
User avatar
Taiwan
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan
Contact:

Post by Taiwan »

Hello

Could you send to me again?

Thank you.

Regards,

Richard
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Evans,

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

Antonio Linares
www.fivetechsoft.com
Post Reply