Many examples in this reference require an XML file. We will use book.xml that contains the following:

Example #1 book.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<book id="listing">
 <title>My lists</title>
 <chapter id="books">
  <title>My books</title>
    <tgroup cols="4">
       <entry>The Grapes of Wrath</entry>
       <entry>John Steinbeck</entry>
       <entry>The Pearl</entry>
       <entry>John Steinbeck</entry>
       <entry>Amine Maalouf</entry>
      <!-- TODO: I have a lot of remaining books to add.. -->

PHP Manual
Creative Commons License
Privacy Policy