Copyright © 2010 Silmaril Consultants
Rev: 2010-03-01T00:19:00+0000

Yes if you need robustness, accuracy, and persistence.B.2  Should I use XML instead of HTML?

Yes, if you need robustness, accuracy, and persistence. XML allows authors and providers to design their own document markup instead of being limited by HTML. Document types can be explicitly tailored to an application, so the cumbersome fudging and poodlefaking that has to take place with HTML becomes a thing of the past: your markup can always say what it means. Trivial example:

<date YYYY-MM-DD="2005-12-26">next Monday</date>
          

If your information is transient, or completely static and unreferenced, or very short and simple, and unlikely to need updating, HTML may be all you need.