Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to access date from remote XML file???
Old 11-26-2008, 05:19 AM How to access date from remote XML file???
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Hi,

Please help me,

How can I access data from remote XML file

and print in the my page...

I am new to webservices so please tell me in detail...

I am using php.........

Thanks
Isabella_Smith is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-26-2008, 06:38 AM Re: How to access date from remote XML file???
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
in details, it depends:
* Of the web-service transport. Is it an xml-rpc, soap, rest web service or maybe a simple xml file that you access by the net ?
* Of the usage. Do you want to save it locally as is, transform it into html.....

Give us more infos.

Once this is cleared, the rest is simply sending the XML file to an xml reader instance, and point the nodes you need to extract datas.
Or to create an xsl style sheet to transform it via the XSL engine into html.

If the xml file is not too big (ie: less than 1 Mb), then I like the DOM implementation: http://www.php.net/manual/en/ref.domxml.php
Otherwise, look at the xmlreader: http://www.php.net/manual/en/class.xmlreader.php
For the XSL transformation of xml into html: http://php.net/xsl
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-26-2008, 06:44 AM Re: How to access date from remote XML file???
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
I bet that in this case we will finish with file_get_contents() and preg_match()
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 11-26-2008, 07:13 AM Re: How to access date from remote XML file???
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
You can use NuSOAP or SOAP from PHP itself (http://us2.php.net/soap)

See this article for an example.
http://devzone.zend.com/article/3246...rvices-for-PHP
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Reply     « Reply to How to access date from remote XML file???
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13733 seconds with 12 queries