I can't get this to parse...http://www.homerecordingconnection.com/xml.php?f=rt&n=10
Using:
MagicParser_parse("http://www.homerecordingconnection.com/xml.php?f=rt&n=10","myRecordHandler2","xml|rdf/channel/item/");
What am i doing wrong?
Hi,
The format string you are using is not quite correct for that feed. It should be:
xml|rdf:rdf/item/
I just tested that with an example:
View Output
Here's the source:
<?php require("MagicParser.php"); function myRecordHandler($item) { print_r($item); } $url = "http://www.homerecordingconnection.com/xml.php?f=rt&n=10"; MagicParser_parse($url,"myRecordHandler","xml|rdf:rdf/item/");?>
Cheers! David.
Yes of course, cheers!
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi,
The format string you are using is not quite correct for that feed. It should be:
xml|rdf:rdf/item/
I just tested that with an example:
View Output
Here's the source:
<?php
require("MagicParser.php");
function myRecordHandler($item)
{
print_r($item);
}
$url = "http://www.homerecordingconnection.com/xml.php?f=rt&n=10";
MagicParser_parse($url,"myRecordHandler","xml|rdf:rdf/item/");
?>
Cheers!
David.