O'Reilly logo

Sams Teach Yourself XML in 10 Minutes by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How Is XML Written?

XML is written using tags. An XML element has a start tag that is delimited by angled brackets—written as <myStartTagName>—and an end tag—written as </myStartTagName>—which is also delimited by angled brackets. For example, to create a title element in XML, you could write this:

<title>Some book title</title> 

Unlike in some parts of HTML, tags in XML must be used in pairs. Omitting an end tag causes the XML processor to generate an error. Each start tag in XML must have a matching end tag.

Note

An XML processor is a piece of software that processes the characters of an XML document and makes available to another piece of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required