discuss: displaying xml in DocBook
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 > and <.
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>