Integrating tumblr blog with website

前端 未结 4 713
礼貌的吻别
礼貌的吻别 2020-12-24 03:54

I would like to integrate my tumblr feed in to my website. It seems that tumblr has an API for this, but I\'m not quite sure how to use it. From what I understand, I request

4条回答
  •  感动是毒
    2020-12-24 04:28

    There are two main ways to do this. First, you can parse the xml, pulling out the content from the the tags you need (a few ways to do this depending on whether you use a SAX or DOM parser). This is the quick and dirty solution.

    You can also use an XSLT transformation to convert the xml source directly to the html you want. This is more involved since you have to learn the syntax for xslt templates, which is a bit verbose.

提交回复
热议问题