[whatwg] Distinguishing XML and HTML by content sniffing
mikeday at yeslogic.com
Sat Mar 3 22:33:51 PST 2007
For user agents like Prince that support XML and HTML content it is
sometimes necessary to distinguish whether a .html file is actually XML
or HTML in order for it to be processed correctly.
I've written an article for XML.com explaining exactly how Prince
performs content sniffing to distinguish XML and HTML documents:
What Does XML Smell Like?
Any feedback would be greatly appreciated. No doubt at some point it
will be necessary to revise our heuristics for HTML5 :)
Print XML with Prince!
More information about the whatwg