[microformats-discuss] xFolk parser in PHP
Bud Gibson
bud at thecommunityengine.com
Tue Oct 4 03:13:24 PDT 2005
Andreas:
I know of no xFolk Parser in PHP. I have however written xFolk
parsers in javascript. I have discussion of those here:
http://thecommunityengine.com/home/archives/2005/07/greasemonkey_mi.html
and here:
http://thecommunityengine.com/home/archives/2005/09/vegomatic_an_al.html
I have also linked between tagging services as I describe here:
http://thecommunityengine.com/home/archives/2005/09/a_tag_based_lea.html
and here:
http://thecommunityengine.com/home/archives/2005/09/a_tag_cloud_int.html
In a nutshell, I think there are really three generic parser
strategies to pursue. One is to treat your html document as xml and
apply tools like XPath and XSLT. The second is to somehow create a
DOM tree and then walk it. Both of these strategies are easily
applied in browsers which essentially go through the pain of parsing
the html file for you and give you a data structure to work with.
XPath and XSLT are most easily applied to html documents in firefox
while DOM walking applies to both firefox and ie. The third parser
strategy is to really go low level and scan the document like it was
a text file.
As for creating a cross-service tag aggregator, I have both just used
the RSS feeds and have used client side javascript processing of html
pages.
If you have more specific questions, I'll be happy to take a crack.
Bud
On Oct 4, 2005, at 4:00, Andreas Haugstrup wrote:
> Hey,
>
> Has anyone written an xFolk parser in PHP? I'm a part of a group
> who wants to do tag sharing between services and we're trying out a
> ping+pull scenario that uses xFolk for the data. I'm no programmer
> and while I have created a parser in PHP, I'm also quite certain
> it's going to fail unexpectedly at some point.
>
> - Andreas
> --
> <URL: http://www.solitude.dk/ >
> Commentary on media, communication, culture and technology.
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
>
More information about the microformats-discuss
mailing list