Actually, the examples directory in the distro for the development release has a nice program to create an element and print it to stdout called SimpleTestBool.hs:<br><br>module Main where<br><br>import List (isPrefixOf)<br>
import Text.XML.HaXml.XmlContent<br>import Text.XML.HaXml.Types<br>import Text.PrettyPrint.HughesPJ (render)<br>import Text.XML.HaXml.Pretty&nbsp;&nbsp;&nbsp;&nbsp; (document)<br><br>-- Test stuff<br>--value1 :: ([(Bool,Int)],(String,Maybe Char))
<br>value1 = True<br><br>--main = do (putStrLn . render . document . toXml) value2<br><br>main = fWriteXml &quot;/dev/tty&quot; value1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>