|
Text.XML.HaXml.XmlContent |
|
|
|
|
Description |
The class XmlContent is a kind of replacement for Read and Show:
it provides conversions between a generic XML tree representation
and your own more specialised typeful Haskell data trees.
If you are starting with an XML DTD, use HaXml's tool DtdToHaskell
to generate both the Haskell types and the corresponding instances.
If you are starting with a set of Haskell datatypes, use DrIFT to
derive instances of this class for you:
http://repetae.net/john/computer/haskell/DrIFT
and _do_not_ use the current module, but rather
Text.XML.HaXml.XmlContent.Haskell, for the correct matching
instances for standard Haskell datatypes.
|
|
Synopsis |
|
|
|
|
Re-export everything from Text.XML.HaXml.XmlContent.Parser.
|
|
module Text.XML.HaXml.XmlContent.Parser |
|
module Text.XML.HaXml.TypeMapping |
|
Contains instances of the XmlContent classes,
|
|
Whole-document conversion functions
|
|
|
Convert a fully-typed XML document to a string (with or without DTD).
|
|
|
Read a Haskell value from an XML document, ignoring the DTD and
using the Haskell result type to determine how to parse it.
|
|
|
Read a fully-typed XML document from a string.
|
|
|
Convert a fully-typed XML document to a string (without DTD).
|
|
|
Convert a fully-typed XML document to a ByteString (without DTD).
|
|
|
Read an XML document from a file and convert it to a fully-typed
Haskell value.
|
|
|
Write a fully-typed Haskell value to the given file as an XML
document.
|
|
|
Write any Haskell value to the given file as an XML document,
using the FastPackedString interface (output will not be prettified).
|
|
|
Read a fully-typed XML document from a file handle.
|
|
|
Write a fully-typed XML document to a file handle.
|
|
|
Write a fully-typed XML document to a file handle, using the
FastPackedString interface (output will not be prettified).
|
|
Produced by Haddock version 0.8 |