Primary Difference Between XML and HTML
- HTML targets an application (web browser)
- XML data can be much more open-ended
- browsing, printing, indexing, searching, filtering ... (it's up to you)
- XML is syntactically strict
- Very few options when composing correct files
- “Draconian Error Handling” — processor must quit if document is not “well-formed”
- Tools are easy to build
- ... providing for a commodity market in compatible tools
- HTML is syntactically loose
- Anything goes
- ... as long as it works in the browser ...
- (which browser?!)