Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

XML to HTML

Options
  • 16-02-2005 10:17am
    #1
    Registered Users Posts: 379 ✭✭


    Im trying to query an affiliate website via a http address

    as in http://www.yourdomainname.ie/qeryserver.php?Prod=1234

    This returns a one line XML result giving me the name of the product

    <ProdName>Music CD</ProdName>

    How can i incorporate this in to a html document to firstly qury the server and secondly produce the results all in one script and when the html page loads


Comments

  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    What language/setup?


  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    Dunno if this will be any help for you:

    http://ie.php.net/manual/en/ref.xml.php

    The PHP manual is tough to get your teeth into until you get used to how it's written.

    PHP has some inbuilt XML functions, this should be a doddle, but I haven't done any XML stuff myself, sorry.


  • Closed Accounts Posts: 304 ✭✭Zaltais


    Not 100% what you're looking for because it is more specific to RSS, rather than XML generally, but this should be pretty useful.


  • Registered Users Posts: 2,781 ✭✭✭amen


    I do some thing similar on www.moletrator.com
    look under webservice
    basically I call a webservice from jscript on a button click(could also be called from body onload) that returns xml. I then format it using xsl and display it
    I happen to be using the MS XML dom but you could us any dom
    hope it helps
    if u can't get it working post back what u have tried


Advertisement