HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulexml-conduit-1.10.1.0Haskell2010

Text.XML.Stream.Render.Internal

Enumeratees to render XML Events. Unlike libxml-enumerator and expat-enumerator, this module does not provide IO and ST variants, since the underlying rendering operations are pure functions.

Contents
  1. Rendering XML files
  2. Renderer settings
  3. Event rendering
  4. Attribute rendering
Synopsis

Rendering XML files

Renderer settings

methoddef :: a

The default value for this type.

Defines some top level namespace definitions to be used, in the form of (prefix, namespace). This has absolutely no impact on the meaning of your documents, but can increase readability by moving commonly used namespace declarations to the top level.

Determines whether the XML declaration will be output. Note that when using the streaming API the XML declaration will be output only if this is set to true and the stream includes an EventBeginDocument event. Apart from yielding it explicitly, this can be achieved by wrapping the stream in the document function.

Default: True

valueorderAttrs :: [(Name, [Name])] -> Name -> Map Name Text -> [(Name, Text)]

Convenience function to create an ordering function suitable for use as the value of rsAttrOrder. The ordering function is created from an explicit ordering of the attributes, specified as a list of tuples, as follows: In each tuple, the first component is the Name of an element, and the second component is a list of attributes names. When the given element is rendered, the attributes listed, when present, appear first in the given order, followed by any other attributes in arbitrary order. If an element does not appear, all of its attributes are rendered in arbitrary order.

Event rendering

Attribute rendering