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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access