Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8275799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:11:17+00:00 2026-06-08T08:11:17+00:00

I have the url to web service which returns some xml data. I need

  • 0

I have the url to web service which returns some xml data. I need to load this xml data and include only the value of the date tag on my site. How can this be done?

this is the url which returns xml:

http://www.islamicfinder.org/prayer_service.php?country=usa&city=new_york&state=NY&zipcode=10006&latitude=40.7092&longitude=-74.0128&timezone=-5&HanfiShafi=1&pmethod=5&fajrTwilight1=10&fajrTwilight2=10&ishaTwilight=10&ishaInterval=30&dhuhrInterval=1&maghribInterval=1&dayLight=1&simpleFormat=xml

<?xml version="1.0"?>
<prayer>
    <fajr>4:12</fajr>
    <sunrise>5:43</sunrise>
    <dhuhr>1:03</dhuhr>
    <asr>5:00</asr>
    <maghrib>8:22</maghrib>
    <isha>9:54</isha>
    <date>July 21, 2012</date>
    <hijri>2 Ramadan 1433</hijri>
    <city>New York</city>
    <country>Usa</country>
    <website>www.IslamicFinder.org</website>
</prayer> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:11:19+00:00Added an answer on June 8, 2026 at 8:11 am

    Try using PHP’s SimpleXMLElement

    <?php
      $url = 'http://www.islamicfinder.org/prayer_service.php?country=usa&city=new_york&state=NY&zipcode=10006&latitude=40.7092&longitude=-74.0128&timezone=-5&HanfiShafi=1&pmethod=5&fajrTwilight1=10&fajrTwilight2=10&ishaTwilight=10&ishaInterval=30&dhuhrInterval=1&maghribInterval=1&dayLight=1&simpleFormat=xml';
      $result = new SimpleXMLElement($url, NULL, true);
      echo $result->date;
    ?>
    

    The NULL means we’re not passing any options. True means we’re getting the data from a URL. Check out the arguments here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service which you post data to and it returns you
I have a .net web service that takes some xml data. From within the
I am using a web service that returns JSON data. test.com/incident.do?JSON&sysparm_action=getRecords Loading this URL
I have a working PHP web service that returns data (if I input the
I have implemented a web service in PHP. This service takes name/value pairs as
I have the web service URL, login and password, but I can't understand is
I have My Sharepoint Web Service URL, but when i try to access it
I have a web service contains a web method with the url http://localhost/Service1.asmx?op=AddNumbers .
I have a long URL on a web page in Windows that I need
i have to reach a web site content which have an url like that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.