What is XML markup for?

13. A complete XML document

<?xml version="1.0"?> <greetings xmlns="http://www.example.com/ns"> <hello type="fulsome">hello world!</hello> </greetings>
  • The XML declaration
  • Namespace declaration
  • The root element of the document itself
  • Other elements and content
  • Attribute and value

Up: Contents Previous: 12. Representing an XML tree Next: 14. The XML declaration