<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DeltrOclic</id>
	<title>Microformats Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DeltrOclic"/>
	<link rel="alternate" type="text/html" href="https://microformats.org/wiki/Special:Contributions/DeltrOclic"/>
	<updated>2026-04-21T10:18:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=hreview-parsing&amp;diff=35973</id>
		<title>hreview-parsing</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=hreview-parsing&amp;diff=35973"/>
		<updated>2008-12-20T03:35:26Z</updated>

		<summary type="html">&lt;p&gt;DeltrOclic: bocdelri&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;litacochic&lt;br /&gt;
lacaladr&lt;br /&gt;
&amp;lt;h1&amp;gt;hReview parsing&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
by [http://tantek.com/log/ Tantek ÃÂelik]&lt;br /&gt;
&lt;br /&gt;
== introduction ==&lt;br /&gt;
&lt;br /&gt;
When [[hreview|hReview]] was first being developed, it was clear to me from experience with developing [[hcard|hCard]] and [[hcalendar|hCalendar]] that each property, value, and structure being introduced into hReview was unambiguously parsable, both for the existence of hReviews in arbitrary (X)HTML (and anywhere that arbitrary (X)HTML can be embedded, e.g. RSS, Atom, &amp;quot;generic XML&amp;quot;), and properties and values in general.&lt;br /&gt;
&lt;br /&gt;
The purpose of this document is to capture the specifics of how to parse hReview and all its properties in order to increase interoperability of the format.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== status ==&lt;br /&gt;
&lt;br /&gt;
This document is an incomplete draft. Use the [[hcard-parsing]] document for guidance where holes exist. In fact, much of this will be clearly recognized by anyone familiar with [[hcard-parsing]] as having been copypasted from that source. At some point (perhaps after writing [[hcalendar-parsing]]), I will abstract the common aspects of [[compound-microformat]] parsing and write a separate [[parsing]] document which will handle all general aspects such as URL handling, looking for the root class name, looking for properties, treating embedded microformats as wrappers etc.&lt;br /&gt;
&lt;br /&gt;
== scope ==&lt;br /&gt;
&lt;br /&gt;
Although this page is written specifically to explain how to parse [[hreview|hReview]], the concepts and algorithms contained therein serve as an example for how other [[compound-microformat|compound microformats]] are to be parsed.&lt;br /&gt;
&lt;br /&gt;
== URL handling ==&lt;br /&gt;
&lt;br /&gt;
An hReview parser may begin with a URL to retrieve.&lt;br /&gt;
&lt;br /&gt;
If the URL lacks a fragment identifier, then the parser should parse the entire retrieved resource for hReview.&lt;br /&gt;
&lt;br /&gt;
If the URL has a fragment identifier, then the parser should parse ''only'' the node indicated by the fragment identifier and its descendants, looking for hReviews, starting with the indicated node, which may itself be a single hReviews.&lt;br /&gt;
&lt;br /&gt;
== root class name ==&lt;br /&gt;
&lt;br /&gt;
Each compound microformat starts with a root element with a relatively unique class name.  By that I mean a class name which isn't simply a common word, and is unlikely to have been used outside the context of the microformat.  By choosing such a root class name the microformat avoids (for all practical purposes) colliding with existing class names that may exist within the (X)HTML context.  This is essential to enabling such compound microformats to be ''embedded'' inside current, existing content, as well as future content.&lt;br /&gt;
&lt;br /&gt;
==Related pages==&lt;br /&gt;
{{hreview-related-pages}}&lt;/div&gt;</summary>
		<author><name>DeltrOclic</name></author>
	</entry>
</feed>