- XML stands for eXtensible Markup Language.
- XML is a W3C Recommendation (10th February 1998)
- XML is Just Plain Text
- XML tags are not predefined. You must define your own tags
- XML Separates Data from HTML
- XML Simplifies Data Sharing, Data Transport, Platform Changes
XML Makes Your Data More Available
- XML is designed to transport and store data. HTML was designed to display data.
- XML documents must have a root element
- An XML element is everything from (including) the element’s start tag to (including) the element’s end tag
- XML elements must have a closing tag, must be properly nested
- Use elements for data. Use attributes for information that is not relevant to the data.
- XML tags are case sensitive
- XML attribute values must be quoted
- Any name can be used, no words are reserved.
- <!– This is a comment –>
- There are 5 predefined entity references in XML:
< < less than > > greater than & & ampersand ' ‘ apostrophe " “ quotation mark
- White-space is Preserved in XML
- With XML, errors are not allowed
- Errors in XML documents will stop your XML applications.
- XML Elements are Extensible
- Raw XML files can be viewed in all major browsers.
- It is possible to use CSS to format an XML document. Formatting XML with CSS is not the most common method. W3C recommend using XSLT instead.
- XSLT is the recommended style sheet language of XML. XSLT (eXtensible Stylesheet Language Transformations) is far more sophisticated than CSS. XSLT can be used to transform XML into HTML, before it is displayed by a browser
- W3C supports an XML-based alternative to DTD, called XML Schema