Working with XML and DocBook

Like its ancestor SGML and cousin HTML, XML is a markup language. It is designed for use in a plain-text document. Tags surround specific sections of the text to denote how that section is to be displayed. Listing 4.1 contains a short example.

Listing 4.1. Sample XML Excerpt

<?xml version="1.0"?><xml-stylesheet type="text/css" href="book.css"?><book><title>Ubuntu Unleashed 2013</title><edition>8</edition><chapter>       <number>1</number>       <title>Installing Ubuntu</title>       <text>               <paragraph><dropcap>N</dropcap>ot that long ago,the mere mention...               </paragraph>       ...       </text></chapter>...</book>

This could easily be written using a simple text editor like the one installed ...

Get Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.