You are here:  » Basic File Analysis


Basic File Analysis

Submitted by Bay_Oz on Fri, 2011-02-18 17:49 in

Hi,

I am just using your Basic File Analysis code sample but its working for some files and not working for some others. As I understood its related about file size and my hosts limit, because the script is stoping to work after this text.

Autodetected Format String: xml|URUNLER/

Contents of first record:

Do you have any idea for fixing this issue? (which limit should i change or how can i find related which limit)

Thanks,

Submitted by support on Sat, 2011-02-19 09:45

Hi,

Where the auto-detected Format String is the top level element (URUNLER in your example), this generally means that the file wouldn't really be suitable for use with Magic Parser as there are no frequently repeating elements (which is what auto-detection looks for).

In the opposite case, you might come across an auto-detected Format String of, for example "PROPERTIES/PROPERTY/FEATURES/FEATURE" In this case, you are probably interested in each PROPERTY record, however since there are more FEATURE records in total that is what is picked up by auto-detection. In this case, cutting the Format String to just PROPERTIES/PROPERTY/ would probably have the desired result.

If you're not sure - if the XML is not too large submit the file to me using the Get It Coded form (use the display contents as HTML option) and I'll take a look for you...

Cheers,
David.

Submitted by Bay_Oz on Sat, 2011-02-19 22:29

Hi David,

I am directly using this code (http://www.magicparser.com/node/53) and my xml file is not static. I tried many differant xml files and its not stabil. (working or not) I am sending xml sample on Get It Coded.

Thanks,