discuss: displaying xml in DocBook


Previous by date: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Ari Makela
Next by date: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Saqib.N.Ali.seagate.com
Previous in thread: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Ari Makela
Next in thread: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Saqib.N.Ali.seagate.com

Subject: Re: displaying xml in DocBook
From: "John R. Daily" ####@####.####
Date: 11 Sep 2002 21:32:20 -0000
Message-Id: <200209112132.g8BLWIT24270@clmboh1-smtp3.columbus.rr.com>

> > I am writing a HOWTO and I need to add some XML code in it. So that the
> > reader sees the actuall XML rather than the rendered output.
> 
> Replace the '<' and '>' characters with entities &gt; and &lt;.

Actually, there's an easier, more robust way.  Use CDATA
sections, like:

<programlisting><![CDATA[
  <this/><is/><raw/><uninterpreted/><XML/>
]]></programlisting>

--
John R. Daily
<email><mailbox>john</mailbox><domain>geekhavoc.com</domain></email>


Previous by date: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Ari Makela
Next by date: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Saqib.N.Ali.seagate.com
Previous in thread: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Ari Makela
Next in thread: 11 Sep 2002 21:32:20 -0000 Re: displaying xml in DocBook, Saqib.N.Ali.seagate.com


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.