Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New to XML - Please Help

    Hi,

    How do I get the following XML feed

    Code:
    http://www.thomsonfly.com/generated/flight-offers.xml
    into the following web page just below the banner?? Thanks!!

    Code:
    <html>
    
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta http-equiv="Content-Language" content="en-us">
    <title>Contact Us</title>
    </head>
    
    <body>
    
    <div align="center">
      <center>
      <table border="0" width="1133">
        <tr>
          <td valign="top" width="104">&nbsp;</td>
          <td valign="top" width="900">
          <p align="left"><span lang="en-gb">
          <font size="5" face="Verdana" color="#FF6600">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          Book It Yourself</font></span></td>
          <td width="6"></td>
          <td width="6"></td>
          <td width="5"></td>
        </tr>
        <tr>
          <td valign="top" width="104">&nbsp;<p><span lang="en-gb"><font face="Verdana" size="2">
          <a href="http://www.itstravel.co.uk/index.htm">Home</a></font></span></p>
          <p><span lang="en-gb"><font face="Verdana" size="2"><a href="http://www.itstravel.co.uk/about.htm">About 
          Us</a></font></span></p>
          <p><span lang="en-gb"><font face="Verdana" size="2">
          <a href="http://www.itstravel.co.uk/israelholidays.htm">Israel Holidays</a></font></span></p>
          <p><span lang="en-gb"><font face="Verdana" size="2"><a href="http://www.itstravel.co.uk/pilgriminfo.htm">
          Pilgrim Tours</a></font></span></p>
          <form name="Menu1">
    <p><select name="Link" size="1">
      <option selected value="http://www.itstravel.co.uk/index.htm">Book It Yourself</option>
      <option value="http://www.itstravel.co.uk/bookflight.htm">Flight</option>
      <option value="http://www.itstravel.co.uk/bookhotel.htm">Hotel</option>
      <option value="http://www.itstravel.co.uk/carrental.htm" target="_blank">Car Rental</option>
      <option value="http://www.purpleparking.com/its/">
      Airport Car Park</option>
      <option value="http://www.its.goldcover.net/">Insurance</option>
      </select>
    </p>
    <p>&nbsp;</p>
    <p> <input type="button" value="Go"
    onClick="window.location = document.Menu1.Link.options[document.Menu1.Link.options.selectedIndex].value;">
    </div>
    </p>
          <p><font face="Verdana" size="2"><span lang="en-gb"><a href="http://www.itstravel.co.uk/newsletter.htm">Newsletter</a></span></font></p>
          <p><span lang="en-gb"><font face="Verdana" size="2"><a href="http://www.itstravel.co.uk/contact.htm">
          Contact Us</a></font></span></p>
          <p><span lang="en-gb"><font face="Verdana" size="2"><a href="http://www.itstravel.co.uk/links.htm">Links</a></font></span><br>
            <br>
            <a target="_blank" href="http://www.abta.com"><img src="Images/abta.jpg" alt="abta" width="85" height="40" border="0"></a><br>
              <a target="_blank" href="http://www.caa.co.uk/default.aspx?catid=27"> <img src="Images/caa.jpg" alt="caa" width="41" height="43" border="0"></a><img src="Images/IATA%20JPEG.jpg" alt="iata" width="56" height="39" border="0"></p>
          <p></td>
          <td valign="top" width="900">
          <p align="center">&nbsp;</p>
          <p align="center"><span lang="en-gb"><font face="Verdana" size="2">Click
          on any of our partner Flight Operators below and&nbsp;<br>
          go ahead to book your own flight to anywhere in the world</font></span>!<span lang="en-gb"><font face="Verdana" size="2"> <br>
          </font></span></p>
          <p align="center">
    
    <a href="http://www.thomson.co.uk/canberra/click?target=www.thomson.co. uk&source=41&cid=1&sid=publisherpagelocation" target="_blank"> <img src="http://www.lduhtrp.net/image-2227511-10362993" width="468" height="60" alt="Thomson Holidays - Click Here!" border="0"/></a>
    
          </p>
          <p align="center">
    
          <span lang="en-gb"><font face="Verdana" size="2"><br>
          
          <a>http://www.thomsonfly.com/generated/flight-offers.xml</a>
          
          </font></span></p>
          <blockquote>
            <blockquote>
              <blockquote>
                <blockquote>
    			<form>
    
    <table cellpadding="2" cellspacing="0" border="0" bgcolor="#FFFFFF" height="262">
    
    <tr>
     <td align="middle" height="21">
    &nbsp;</td>
    </tr>
    <tr>
    <td align="center" height="20">
    &nbsp;
    </td>
    </tr>
    </table>                      
    
    <INPUT TYPE=hidden NAME=FCode VALUE="72ws89md">
                      
    
                  </form>
    
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
          </td>
          <td valign="top" width="5">
          <p align="left"></td>
        </tr>
        <tr>
          <td valign="top" width="5">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top" width="5">&nbsp;</td>
        </tr>
        </table>
      </center>
    </div>
    
    </body>
    
    </html>

  • #2
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    HI, You need to parse that XML feed using any server side language.

    If you are using PHP then visit following link, I will help you to learn how to parse XML with PHP.
    http://www.xml.com/pub/r/333

    Thanks,

  • #3
    New Coder
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the reply...

    the tutorial however only shows me how to input their News feed into a webpage.
    I am not sure what I need to replace or how I should build the PHP text so that it will display the 'Flights' feed that was in my original posting onto my HTML webpage.

    Please can you make this simpler for me and show me what the PHP script shoulgd look like and wher eI need to put the xml link (from the original posting)?

    Thanks...


  •  

    Posting Permissions

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