Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Only use XHTML when you need to have your content parsed as XML. Otherwise, there is nothing wrong at all with well-formed HTML.


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.


That also makes it easier for others to repackage/repurpose/mash.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: