Atomik Roundtrip 2.1: Working with Roundtrip > Chapter 20 A brief guide to XML << >>

20.8 Summary

• XML is made up of elements.

• An element consists of a piece of text surrounded by two identifying tags - an opening tag <ElementName> and a closing tag </ElementName>.

• Elements can contain other elements : contained elements are ‘child’ elements, containing elements are ‘parent’ elements.

• Elements can have any name you wish to assign them - but element names cannot contain spaces, nor can they contain certain punctuation marks.

• Elements can contain metadata as attributes. Attributes appear within the XML element’s opening tag: <ElementName attribute=”attributeValue”>. The value of the attribute must be enclosed in double or single quotes.

• XML structure can be defined with a DTD. Valid XML conforms to a DTD.

• All DTD declarations are enclosed within angle brackets, and start with an exclamation mark: <!...>

• Entities are used to represent a piece of text defined elsewhere : special characters (character entities) or pieces of DTD definitions (parameter entities).