Home > Archive >  2009 >  July >  23

Dumb XML Question answered

Thursday, July 23, 2009 by Dave Winer.

A picture named gumby.gifI just stumbled on an answer to Tuesday's Dumb XML QuestionPermalink to this paragraph

If you recall, I wanted to provide a way for users to view the XML of a feed that contains a <cloud> element. I didn't want them to have to do anything like View Source, for a simple reason. I wanted to make it one-click to refresh, so you could quickly see the effect of a change on the XML. I really missed this from the days before the browser vendors hacked up the viewing of RSS in the browser.  Permalink to this paragraph

Here's what I did... Permalink to this paragraph

1. Add a button to the LifeLiner editing window called View. Permalink to this paragraph

2. When the user clicks it, I read the feed XML from the server. Permalink to this paragraph

3. Write it out to the local file system with the name preview.xml. Turns out the extension is significant. Permalink to this paragraph

4. Send the OS an openDocument message. Permalink to this paragraph

5. Voila -- you see the XML as God intended. Permalink to this paragraph

Let's hope they don't "fix" this. :-) Permalink to this paragraph

   Recent stories

A picture named dave.jpgDave Winer, 54, pioneered the development of weblogs, syndication (RSS), podcasting, outlining, and web content management software; former contributing editor at Wired Magazine, research fellow at Harvard Law School, entrepreneur, and investor in web media companies. A native New Yorker, he received a Master's in Computer Science from the University of Wisconsin, a Bachelor's in Mathematics from Tulane University and currently lives in Berkeley, California.

"The protoblogger." - NY Times.

"The father of modern-day content distribution." - PC World.

One of BusinessWeek's 25 Most Influential People on the Web.

"Helped popularize blogging, podcasting and RSS." - Time.

"The father of blogging and RSS." - BBC.

"RSS was born in 1997 out of the confluence of Dave Winer's 'Really Simple Syndication' technology, used to push out blog updates, and Netscape's 'Rich Site Summary', which allowed users to create custom Netscape home pages with regularly updated data flows." - Tim O'Reilly.


Dave Winer Mailto icon

© Copyright 1994-2009 Dave Winer Mailto icon.

Last update: 7/23/2009; 6:05:20 PM Pacific. "It's even worse than it appears."

Click here to view blogs commenting on  RSS 2.0 feed.