hexpat-0.20.4: XML parser/formatter based on expat

Safe HaskellNone

Text.XML.Expat.Internal.IO

Description

Low-level interface to Expat. Unless speed is paramount, this should normally be avoided in favour of the interfaces provided by SAX and Tree, etc.

Synopsis

Documentation

hexpatNewParserSource

Arguments

:: Maybe Encoding 
-> Maybe (ByteString -> Maybe ByteString)

Entity decoder

-> Bool

Whether to include input locations

-> IO (HParser, IO XMLParseLocation) 

data Encoding Source

Constructors

ASCII 
UTF8 
UTF16 
ISO88591 

data XMLParseError Source

Parse error, consisting of message text and error location

data XMLParseLocation Source

Specifies a location of an event within the input text

Constructors

XMLParseLocation 

Fields

xmlLineNumber :: Int64

Line number of the event

xmlColumnNumber :: Int64

Column number of the event

xmlByteIndex :: Int64

Byte index of event from start of document

xmlByteCount :: Int64

The number of bytes in the event