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.XmlParser

Description

Provides an xml parse function which depends on external libraries.

Synopsis

Documentation

class XmlParseable a where Source #

This class provides an xml parsing function which is instantiated by using the hexpat or the XML.Light library, dependent on the haskell environment.

Minimal complete definition

parseXml

Methods

parseXml :: a -> IO (Either String Element) Source #

Instances

XmlParseable ByteString Source # 

Methods

parseXml :: ByteString -> IO (Either String Element) Source #

readXmlFile :: FilePath -> IO ByteString Source #