wraxml-0.4.4.2: Lazy wrapper to HaXML, HXT, TagSoup via custom XML tree structure

Safe HaskellSafe
LanguageHaskell98

Text.XML.WraXML.String

Synopsis

Documentation

type T = [Atom] Source #

type Atom = T Source #

type Encoding = String Source #

should be an abstract type

type Encoded = String Source #

should be [Word8]

fromString :: String -> T Source #

Literal translation from pure strings. This can only work, if the string does not contain special characters.

fromUnicodeString :: String -> T Source #

default routine

toUnicodeString :: T -> String Source #

Errors in on resolution of references yield undefined elements.

isoLatin1ToUnicodeString :: T -> String Source #

Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!

Interpret the XML string as mixture of ISO-Latin-1 characters and XML entities and convert that to a Unicode string.

utf8ToUnicodeString :: T -> String Source #

Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!

Interpret the XML string as mixture of UTF-8 characters and XML entities and convert that to a Unicode string.

readHex :: (Eq a, Num a) => String -> a Source #

parse :: String -> T Source #

Caution: There is a memory leak for the case that entity references are huge.

parseAux :: (Char -> Bool) -> (String -> T) -> String -> String -> T Source #

replaceUTF8ByUnicode :: T -> T Source #

Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!

Consider the XmlString as a mixture of XML entities and UTF-8 characters. Replace UTF-8 characters by Unicode representations.

uStringWithErrorsMergePlainChars :: EmbeddedExceptions -> [Exceptional String String] Source #

Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!