MagicParser 1.0

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Commercial License ($102.00)
CreatedCreated : Jun 21, 2007
Size downloadDownloads : 13
Program licensing
Thank you for voting...

MagicParser parses just about any XML or CSV variant ...

magicparser by David Morison parses just about any XML or CSV variant (comma, tab, pipe separated values etc. ) text file in PHP, ideal for parsing affiliate product feeds, syndication feeds (RSS, Atom etc. ), SOAP envelopes and responses documents from XML.
MagicParser 1.0_parse() reads and parses filename, calling the user specified function record_handler for every record in the file, or until record_handler returns a non-zero value.
MagicParser [magicparser1.0.exe]_parse() will attempt to automatically detect the file type and data representation format unless this feature is overridden by the optional 3rd paramater format.
filename can be anything that would be used with PHP's fopen() function, including Internet URLs if URL wrappers are enabled.
record_handler is the name of a user defined function that will be called for each record in the file with a single parameter containing the current record as an associative array.
For XML files, the key values contain a simple path style expression indicating the name of the element. Key values for element attributes have the attribute name appended by a hyphen.
Potential duplicate key values are resolved by appending @1, @2 . . @n to the element name. For CSV files with a header row, key values are the field names contained in the header row.
For CSV files with no header row, key values are FIELD1, FIELD2 . . FIELDn. If record_handler returns a non-zero value magic_parser will stop reading the file.
format (optional) contains a string that describes the file type and other data representation parameters, thus avoiding the autodetection phase of the parse function.

MagicParser 1.0 scripting tags: miscellaneous, parser script, function, magic parser, key, recordhandler, values, magicparser, file, miscellaneous script. What is new in MagicParser 1.0 software script? - Unable to find MagicParser 1.0 news. What is improvements are expecting? Newly-made MagicParser 1.1 will be downloaded from here. You may download directly. Please write the reviews of the MagicParser. License limitations are unspecified.