Here are some examples of information item types in an XML document:
- The <book> element is an element information item that contains child elements and attributes.
- The "title" attribute of the <book> element is an attribute information item.
- The text "Learning XML" between the <title> tags is a character data information item.
- A comment like <!-- This is a book details --> is a comment information item.
- The XML declaration at the top <?xml version="1.0"?> provides version and encoding details and is also an information item.
- The document type declaration <!DOCTYPE book> is a document type information item.
- The entire XML document