- eXtensible Markup Language
- Open standard
- Made up of Tags and Elements
- Tag
- Sits at beginning and end of data.
- The start tag name is encapsulated with <>.
- Specific name does not matter.
- The end tag is encapsulated with </>
- Ex. Begin <tagname>
- Ex. End </tagname>
- Element
- Refers to data between tags.
- Empty Element – <tagname />
- Tag
- Tag and element indentation does not matter.
- XML Declaration:
- At beginning of XML File and is optional.
- Prepares XML processor to parse document.
- ex. <? xml version = “#.0” encoding = “UTF-#”?>
- Root
- Main element of document
- Top of Tree
- Attributes
- Elements can be associated with attributes.
- Always follows a start tag.
- Ex.start tag <tagname name=”value”>
- Ex. end tag <tagname/>
- Comments
- Starts with “<!–” and ends with “–>”