You are here:  » Any limit to number of records?


Any limit to number of records?

Submitted by pipto on Mon, 2006-03-06 20:24 in

Hi, I just purchased the magicparser script and want to read an affiliate feed. Seems all succesful, however, it only gets the first 40 records, although there are a few hunderd!

I sent you the URL (xml-feed) separately through the contact option of the magicparser website.

Any idea what is causing this, is there a default limit, can I override that?

Help! I purchased this script with the purpose to read this feed... Can you please help out?

Cheers,
Henk.

NOTE: All I use is the default script, just to make sure I didn't make any code mistakes myself:

<?php
  
require("MagicParser.php");
  function 
myRecordHandler($record)
  {
    
// This is where you write your code to process each record, such as loading a database
    // Here we just display the record contents using PHP's internal print_r() function    
    
print_r($record);
  }
  
MagicParser_parse("http://xxxxxxx/?XSL=XML","myRecordHandler","xml|PRODUCTS/PRODUCT/");
?>

This outputs only 40 records instead of a few hunderd....

Submitted by support on Mon, 2006-03-06 20:29

Hi Henk,

I just replied to your email with some info on this. Unfortunately, the feed contains invalid characters is not valid XML. I have created a version of the feed with record 41 (which contains the error) removed and the parser is able to continue beyond that point; however there are further erroneous records later in the feed.

Even though the source data is not valid XML, I shall continue to investigate and see if the parser can be made resilient to this error, which I beleive to be down to a character encoding inconsistency between the declared and actual encoding.

Hope this helps;
Regards,
David.