You are here:  » Autodetect Failed


Autodetect Failed

Submitted by globologic on Fri, 2013-02-01 14:26 in

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

Submitted by support on Fri, 2013-02-01 14:50

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