xml


Posted on 16th Feb 2014 07:03 pm by admin

<?php

echo "<h1>XML Articles</h1>";

$home="http://xml.x-alt.com/";
// load the studentphones.xml file
$channel = simpleXML_load_file('http://xml.x-alt.com/');




// draw a table and column headers
echo "<table border="1">";

//echo "<th>Grade</td><th>Result</th>n";


// iterate through the grade nodes displaying the contents
foreach ($channel->item as $channel) {

echo "<tr>";
echo "<td><a href=" . $home . $channel->link . ">" . $channel->title . "</a>" . "</td>" ;
echo "</tr>";

echo "<tr>";
echo "<td>{$channel->category}</td>";
echo "</tr>";

echo "<tr>";
echo "<td>{$channel->description}</td>";
echo "</tr>";

echo "<tr>";
echo "<td>{$channel->link}</td>";
echo "</tr>n";
}
echo "</table>";
?>

Here I am using a rss feed to display list of articles and the title of the artcles are links that directs the user to the original destination of the article and displays it in full, but i want to display the artcles in my webpage. How can I do this? Do i need to use SOAP?

No comments posted yet

Your Answer:

Login to answer
324 Like 51 Dislike
Previous forums Next forums
Other forums

Table control is disappearing from Screen
Hi Experts,

I have a screen with multiple table control(TC). Each table control has two c

Best PHP Documentation generator
Hello guys!

I would like to hear from you what is the best PHP documentation generator. Perso

New Login Script
Hi all, i attempted to create a whole new login script witch isnt working for some reason i dont kno

Making multiple rows with one query
I have a table called efed_handler_characters with two fields handler_id and bio_id. What query 2 is

Save username into DB
OkaY so I got my blog to actually save the posts and whatever, all I need now is for it to keep the

in php, link returns to the line
When I add a link in a php page, the link word returns to the line (as a
would do)

Examp

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...

Code: $define_li

Form help: Syntax & Logic
Hello again all,

I'm working on a form and ran into a wall (again) and can't seem to think th

Populate drop down list from table??
Lets say for arguments sake that i have a table which contains the numbers 1 to 10.
How can i get

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash