Hi, when trying your online demo I am receiving a Auto Detect failure for the following XML file
http://xml.betfred.com/Rugby-League-NRL.xml
Whats the best way to fix this?
Thanks
Hi globologic,
Thanks for pointing that out I'll investigate why auto-detect fails for this particular example (this can happen where there is an indeterminate repeating element in the XML) however for this source, the format string for each event is
xml|CATEGORY/EVENT/
For example:
<?php require("MagicParser.php"); function myRecordHandler($record) { print_r($record); } $url = "http://xml.betfred.com/Rugby-League-NRL.xml"; MagicParser_parse($url,"myRecordHandler","xml|CATEGORY/EVENT/");?>
Cheers, David -- MagicParser.com
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi globologic,
Thanks for pointing that out I'll investigate why auto-detect fails for this particular example (this can happen where there is an indeterminate repeating element in the XML) however for this source, the format string for each event is
xml|CATEGORY/EVENT/
For example:
<?php
require("MagicParser.php");
function myRecordHandler($record)
{
print_r($record);
}
$url = "http://xml.betfred.com/Rugby-League-NRL.xml";
MagicParser_parse($url,"myRecordHandler","xml|CATEGORY/EVENT/");
?>
Cheers,
David
--
MagicParser.com