...

View Full Version : New to XML - Please Help



Poley
08-31-2008, 09:13 PM
Hi,

How do I get the following XML feed


http://www.thomsonfly.com/generated/flight-offers.xml

into the following web page just below the banner?? Thanks!!


<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>

SSJ
09-01-2008, 08:29 AM
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,

Poley
09-01-2008, 09:57 PM
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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum