Hets - the Heterogeneous Tool Set

Copyright(c) Ewaryst Schulz DFKI 2009
LicenseGPLv2 or higher, see LICENSE.txt
Maintainerewaryst.schulz@dfki.de
Stabilityprovisional
Portabilityportable
Safe HaskellNone

Common.XmlExpat

Contents

Description

Provides the Hexpat parsing and transformation facility to XML.Light types.

Synopsis

Interface to the Expat xml parser

nodesToContent :: [UNode ByteString] -> [Content] Source #

Transforms an Expat xml tree to an XML.Light tree

nodesToContent' Source #

Arguments

:: String

accumulates text nodes

-> [UNode ByteString]

list of content items

-> [Content] 

Version of nodesToContent with accumulator to minimize the occurrences of CData

strToCData :: String -> Content Source #

elemToElem :: ByteString -> UAttributes ByteString -> [UNode ByteString] -> Content Source #

attrToAttr :: (ByteString, ByteString) -> Attr Source #

strToQName :: ByteString -> QName Source #

parseXml :: ByteString -> Either String Element Source #