Reasons for and principles of XML