<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MarkupAsAnApi &#187; HTML</title>
	<atom:link href="http://www.markupasanapi.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markupasanapi.com</link>
	<description>Publish once, publish everywhere</description>
	<lastBuildDate>Mon, 07 Sep 2009 03:56:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Playing with YQL</title>
		<link>http://www.markupasanapi.com/2009/05/17/playing-with-yql/</link>
		<comments>http://www.markupasanapi.com/2009/05/17/playing-with-yql/#comments</comments>
		<pubDate>Sun, 17 May 2009 01:26:45 +0000</pubDate>
		<dc:creator>halans</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[screenscraping]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[yql]]></category>

		<guid isPermaLink="false">http://www.markupasanapi.com/?p=65</guid>
		<description><![CDATA[Note: this is an edited repost from Halans.com. Have been playing with Yahoo!&#8217;s YQL this weekend, querying the Sydney Ferries website. Pretty amazing what it allows you to do, though the Sydney Ferries site wasn&#8217;t the best site to start playing with I guess. I did have a need to have the ferry timetable on [...]<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2009/05/17/playing-with-yql/">Playing with YQL</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Note: this is an edited repost from <a href="http://halans.com/2009/05/10/querying-the-next-sydney-ferry/">Halans.com</a>.</p>
<p>Have been playing with Yahoo!&#8217;s YQL this weekend, querying the Sydney Ferries website. Pretty amazing what it allows you to do, though the Sydney Ferries site wasn&#8217;t the best site to start playing with I guess. I did have a need to have the ferry timetable on my iPhone (especially the Neutral Bay service), so that&#8217;s why I put together <a title="Next ferry from Circular Quay" href="http://nextsydneyferry.com/">Next Sydney Ferry</a> this weekend.</p>
<p>The premise is pretty simple: when does the next ferry depart from Circular Quay? I had this wild idea to do cool stuff with it, but inspired by the simplicity of <a title="Next manly ferry" href="http://nextmanlyferry.com/">Next Manly Ferry</a>, I thought I&#8217;d start out pretty simple too. And it certainly still is a work in progress with plenty of bugs.</p>
<p>NextSydneyFerry.com parses the timetables of the SydneyFerries.info site using YQL and JSONP. No luck with any API, so it&#8217;s pretty fragile reading in the HTML table data. Wish they made an effort marking up the data a bit more helpful (as in markup-as-an-api). One of the URLs even has a typo (&#8220;weekemd&#8221;). I additionally notice YQL not returning any results for the same query, while at other times it would, so they have some bugs too. It was an interesting YQL experiment, but since the data is not too dynamic, I will probably switch to using a more static datastore, which would also be a lot more responsive, and which would be lighter on your mobile dataplan. This is very much a first version application, with limited functionality (it shows you <em>only</em> the next and thereafter ferry, and <em>only</em> departing from Circular Quay), some noteworthy points:</p>
<ul>
<li>it uses the server&#8217;s time so tourists don&#8217;t have to have their mobiles set to local time.</li>
<li>it updates the time in the background without a page refresh.</li>
<li>It allows you to bookmark your daily service.</li>
</ul>
<p>Sydney Ferries allows you to repurpose their content, as long as you add their copyright notice and don&#8217;t charge for it. But they could have made it a lot easier for people to do so.</p>
<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2009/05/17/playing-with-yql/">Playing with YQL</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markupasanapi.com/2009/05/17/playing-with-yql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom non-visible data in HTML 5</title>
		<link>http://www.markupasanapi.com/2008/07/14/custom-non-visible-data-in-html-5/</link>
		<comments>http://www.markupasanapi.com/2008/07/14/custom-non-visible-data-in-html-5/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 12:43:36 +0000</pubDate>
		<dc:creator>halans</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Semantic Web]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[semweb]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://www.markupasanapi.com/?p=12</guid>
		<description><![CDATA[Short and sweet: HTML 5 offers custom data attributes on HTML elements, intended to store custom data, which can then be handled on-page by JavaScript, or off-page by other (web-)applications. John Resig discusses a number of useful benefits. Post from Jean-Jacques Halans MarkupAsAnApi blog.Custom non-visible data in HTML 5<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2008/07/14/custom-non-visible-data-in-html-5/">Custom non-visible data in HTML 5</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Short and sweet: HTML 5 offers <a title="HTML 5" href="http://www.w3.org/html/wg/html5/#custom">custom data attributes</a> on HTML elements, intended to store custom data, which can then be handled on-page by JavaScript, or off-page by other (web-)applications.</p>
<p>John Resig discusses  <a title="Data attributes" href="http://ejohn.org/blog/html-5-data-attributes/">a number of useful benefits</a>.</p>
<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2008/07/14/custom-non-visible-data-in-html-5/">Custom non-visible data in HTML 5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markupasanapi.com/2008/07/14/custom-non-visible-data-in-html-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The practice of POSH</title>
		<link>http://www.markupasanapi.com/2008/02/07/the-practice-of-posh/</link>
		<comments>http://www.markupasanapi.com/2008/02/07/the-practice-of-posh/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 10:29:55 +0000</pubDate>
		<dc:creator>halans</dc:creator>
				<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Semantic Web]]></category>
		<category><![CDATA[Andy Clarke]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.markupasanapi.com/?p=11</guid>
		<description><![CDATA[POSH stands for Plain Old Semantic HTML, and lets face it, POSH sounds better than semantic HTML. Check out the POSH checklist. Poshformats on the other hand are various data formats constructed by using common, semantic class names, which are less formal than microformats. Whenever some one or some organisation creates a common class name, [...]<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2008/02/07/the-practice-of-posh/">The practice of POSH</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a style="float:left;padding:5px;" title="I Know HTML" href="http://flickr.com/photos/49503002894@N01/106960641"><img src="http://farm1.static.flickr.com/44/106960641_1473a4f0a7_t.jpg" alt="" /></a>POSH stands for Plain Old Semantic HTML, and lets face it, POSH sounds better than semantic HTML. Check out the <a title="Microformats" href="http://microformats.org/wiki/posh">POSH checklist</a>.</p>
<p><a title="Poshformats on microformats" href="http://microformats.org/wiki/poshformats">Poshformats</a> on the other hand are various data formats constructed by using common, semantic class names, which are less formal than microformats. Whenever some one or some organisation creates a common class name, this is considered a &#8216;poshformat&#8217;, like for example the <a title="hRelease" href="http://www.socialtext.net/hrelease/">hRelease</a> for pressreleases, or <a title="MicroId" href="http://microid.org/">MacroID</a>, a small decentralized verifiable identity format.</p>
<p>Andy Clarke talks about meaningful mark-up over at StuffAndNonsense, on <a title="Stuff And Nonsense" href="http://www.stuffandnonsense.co.uk/malarkey/more/microformats_the_fine_art_of_markup/">The Fine Art of Markup</a> and discusses <a title="Conventions" href="http://www.stuffandnonsense.co.uk/archives/whats_in_a_name.html">What&#8217;s in a name</a>, covering the conventions webdevelopers use in naming their id&#8217;s for page elements (way back in 2004). So, do you follow convention?</p>
<p>Picture by <strong><a title="Link to kk+'s photostream" href="http://flickr.com/photos/kk/"><strong>kk+</strong></a></strong></p>
<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2008/02/07/the-practice-of-posh/">The practice of POSH</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markupasanapi.com/2008/02/07/the-practice-of-posh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scraping HTML with innerHTML or jQuery</title>
		<link>http://www.markupasanapi.com/2007/09/11/scraping-html-with-innerhtml-or-jquery/</link>
		<comments>http://www.markupasanapi.com/2007/09/11/scraping-html-with-innerhtml-or-jquery/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 08:54:30 +0000</pubDate>
		<dc:creator>halans</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Semantic Web]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[innerHTML]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[screen scraping]]></category>
		<category><![CDATA[screenscraping]]></category>

		<guid isPermaLink="false">http://www.markupasanapi.com/?p=5</guid>
		<description><![CDATA[A couple of nice write-ups on how to scrape HTML using innerHTML at Pathfinder Development: A common solution has been to proxy and scrape an application with a combination of XQuery and TagSoup (to fix the ugly, broken HTML, dontcha know), but it is possible to do this purely in the browser. or with jQuery, [...]<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2007/09/11/scraping-html-with-innerhtml-or-jquery/">Scraping HTML with innerHTML or jQuery</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A couple of nice write-ups on how to scrape HTML using innerHTML at <a title="Pathfinder" href="http://www.pathf.com/blogs/2007/09/parsing-html-wi/">Pathfinder Development</a>:</p>
<blockquote><p>A common solution has been to proxy and scrape an application with a combination of XQuery and TagSoup (to fix the ugly, broken HTML, dontcha know), but it is possible to do this purely in the browser.</p></blockquote>
<p>or with jQuery, as <a title="Scraping with jQuery" href="http://jan.varwig.org/archiv/scraping-pages-with-jquery">Jan Varwig</a> describes:</p>
<blockquote><p>Fortunately, just the day before, I discovered <a href="http://www.jquery.com/">jQuery</a>, a Javascript framework with strong support for <a href="http://docs.jquery.com/DOM/Traversing/Selectors">finding DOM-Nodes via CSS, XPath and some custom selectors</a>. The tricky part now was to get jQuery to access the DOM-Tree of the schedule page on kino.de.</p></blockquote>
<p>Of course, screen scraping would be so much easier using Web Standards.</p>
<p>Post from <a href="http://www.halans.com">Jean-Jacques Halans</a> <a href="http://www.markupasanapi.com">MarkupAsAnApi</a> blog.<br/><br/><a href="http://www.markupasanapi.com/2007/09/11/scraping-html-with-innerhtml-or-jquery/">Scraping HTML with innerHTML or jQuery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markupasanapi.com/2007/09/11/scraping-html-with-innerhtml-or-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
