Check out example codes for "xml vs html". It will help you in understanding the concepts better.
Code Example 1
The most salient difference between HTML and XML is that HTML describes presentation and XML describes content. An HTML document rendered in a web browser is human readable. XML is aimed toward being both human and machine readable.
Learn ReactJs, React Native from akashmittal.com