Rather than writing DocBook XML documents by hand using a text editor like notepad or vi, it is often conveinent to use an XML editor with a point-and-click graphical user interface (GUI). This tutorial covers the use of one such editor, XMLMind's XML Editor (XXE), to create DocBook XML documents.
XXE is Java-based and will run on almost any platform that supports Sun Java version 1.4 or better. This means you can edit your DocBook XML documents using Windows, Linux or Mac OS. If your computer does not have Java installed you will need to visit http://java.sun.com and download the J2SE Java Runtime Environment (JRE) for your operating system.
The personal edition of XMLMind's XML editor is available as a free download and comes with a very liberal end-user license. You can find XXE on XMLMind's product page at: http://www.xmlmind.com/products.html. If you plan to convert your documents to HTML, PDF or Rich Text you may also want to download the FO Converter at this time.
Using the Windows setup binary is very easy and can be accomplished quickly by accepting the default directory locations. Other operating systems require using the tar+gzip archive which takes a few more steps.
To install using the tar+gzip archive.
Which ever method of installation you decide on, make sure that you are logged in as a user with sufficient privileges to accomplish the task.
If XXE refuses to run after installation it may be because it is cannot find Java. If this happens, make sure the directory containing the Java binary is included the system's PATH variable. Also, try running XXE from the command-line in order to see any error messages that might appear. If all else fails, check the XXE FAQ.
Creating a new document is easy once you get the hang of using the XXE. A short step-by-step example is given below.
Use the XXE help file and product documentation to learn more about how to use the XML Editor.
DocBook XML documents may be converted into HTML, PDF or Rich Text formats using XMLMind's FO Converter. The licensing terms and installation process for the converter is very similar to the XML editor. The document conversion is very simple.
Once the conversion is complete the resulting document may be read using the appropriate viewer. For example, a web browser for HTML files or Acrobat Reader for PDF files.