• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

5.3. XML

XML and HTML were designed with different goals: Whereas XML was designed to describe data and to focus on what data is, HTML was designed to display data and to focus on how data looks. This section does not provide an XML tutorial; for detailed tutorials, the reader is referred to the XML tutorial [XML-TUTORIAL]. A discussion on the relationship between XML and SGML (and HTML) can be found in [SGML-XML].

XML was designed as an extensible data representation language [XML]. In HTML, the tags and structure are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like <p>, <h1>, etc.). In contrast, with XML, the author can, and is required to, define the tags and document structure. Each element in an XML document must have both an opening and closing tag.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint