Jump to content

Archived

This topic is now archived and is closed to further replies.

davidoff

Parsing with PHP

Recommended Posts

I'd like to parse a text file based on the GEDCOM format, which is a text document similar to the ICAL format. It is not XML based.

Can anyone recommend a parsing library where you can parse 'any' language ?

Share this post


Link to post
Share on other sites
How about [url=http://pear.php.net/package/Genealogy_Gedcom]this[/url]?

Share this post


Link to post
Share on other sites
I would like to write my own code to parse the data.

I have found this http://hudzilla.org/php/21_5_3.php tutorial on parsing your own language which may be useful but I don't know if it would be simpler to just loop through each line and make decisions based on what is present.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.