Jump to content

xml supplied content with links


layton

Recommended Posts

I'm sure this has been asked a few times but I'm not quite sure the correct search terms.I'm wanting to be able to supply news articles via xml. Sometimes these news articles contain images or links to other places. What would be the correct way of going about this. Sometimes there's multiple links within paragraphs of articles. I'm not sure how to format it.

Link to comment
Share on other sites

Like RSS maybe?
Will RSS really handle what I'm after? To me, it looks like RSS would be able to link to pages with copy, but what about having an article itself contain links and images. Maybe I'm explaining it poorly. Basically I want my xml to look something like the following and then display it somehow. It has to be possible, I just don't know how to correctly do it.
<article><title>Some random title</title><content>Some random content with a <a href="http://nowhere.com">link</a> and an <img src="Image" /> followed by more random text, links and images...maybe</content></article>

Link to comment
Share on other sites

Well, technically speaking, RSS is meant for providing short descriptions to articles. In practice however, RSS has become rich enough for anyone to embed full articles in it. At least the full latest ones that is.For best results, I'd reccomend using plain XHTML as the article holder, and RSS to link to those XHTML documents. XHTML is based on XML, and I think it serves great for articles. Whatever you can do for other XML documents, you can do it on XHTML too.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...