dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: New to XML

  1. #1
    Join Date
    Jan 2010
    Posts
    2

    New to XML

    Hi,

    I have been asked to provide some real-time feeds from a site that uses XML, but the feed is not a normal .xml link, it is given to me with a userid & password, for example:

    http://www.domainname.co.uk/List1.as...e&pwd=password

    In Firefox this URL will give me the normal XML feed, but I need to be able to extract this using PHP.

    I'm not very confident in using XML, but understand I need to parse the XML feed and have been told by the providers of the data that I should be able to extract using a simple CGI which they have provided me with using the HttpRequest.

    I have been able to parse using PHP, but the trouble is I can't seem to pick out each of the elements. For example, I have a news title under the <title> element and a link under the <URL> element, but want to wrap round HTML so that the <URL> element is the linking to the <title> element if that makes sense?!

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    This is more of a PHP question and what you are trying to accomplish is pretty straight forward. You'll need the PHP cURL and DOM modules. Just read the documentation and the examples and it'll all make sense.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles