Re:HTML or XHTML: Does It Really Matter?
by chrisbroadfoot on Thursday July 10, 2008 @12:12AM
(#242015)
Only use XHTML when you need to have your content parsed as XML. Otherwise, there is nothing wrong at all with well-formed HTML.
[ Parent
| on HN ]
Re:HTML or XHTML: Does It Really Matter?
by aaronblohowiak on Thursday July 10, 2008 @12:19AM
(#242022)
the opposite should be your strategy because XHTML is more easily machine read, and thus more easily repurposed (and therefore, a more powerful storage/interchange format). use XHTML so your content can be parsed as XML unless you have a specific and clear reason to abandon easy machine readability.
Tools like BeautifulSoup (Python) and hpricot (Ruby) make processing HTML just as easy as processing XML.