// The Blank text editor already starts with an open PHP tag, then in this case, we must close it to start the HTML code 
?> 
<html>
<!-- Starts the HTML Header --> 
<head>
<title>Google News RSS</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
body{ background-color: #DDDDDD; }
table:first-child { background-color: #ffffff; border: 1px solid #000000; }
table tr td{ padding: 10px; padding-bottom: 20px; border: 0px solid #000000; }
.title { font-size: 160%; border-bottom: 2px solid #E3E3E3; margin: 0px 0px 0.2em; padding-bottom: 0px; }
.title a { float:right }
</style>
</head>
<!-- Ends the HTML Header --> 
<!-- Starts the HTML Body --> 
<body>
<?php 


// Access the Google news feed using the function file_get_contents 
$str_output = sc_webservice('file_get_contents', "http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&topic=n&output=rss", 80, "", "", array(), 30, true);

if(isset($str_output['channel']['item']) && is_array($str_output['channel']['item']))
{
// Enter the condition if the access to Google News was successful. 
?>
<table align='center' cellspacing=0 cellpadding=0>
<tr>
<td class="title">
<?php echo $str_output['channel']['title']; ?>
<a href="<?php echo $str_output['channel']['image']['link']; ?>"><img src="<?php echo $str_output['channel']['image']['url']; ?>" title="<?php echo $str_output['channel']['image']['title']; ?>" /></a>
</td>
</tr>
<?php
// Loop to display all items returned by the webservice. 
foreach($str_output['channel']['item'] as $new)
{
?>
<tr>
<td>
<a href="<?php echo $new['title']; ?>"><?php echo $new['title']; ?></a>
<br />
<?php echo $new['description']; ?>
</td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</body>
<!-- Ends the HTML Body --> 
</html>
<?php // Again opens the PHP tag that was closed at the beginning of the code.