hexpat-0.4: wrapper for expat, the fast XML parserSource codeContentsIndex
Text.XML.Expat.Qualified
Description

With the default flavors for parseTree and formatTree, qualified tag and attribute names such as <abc:hello> are represented just as a string containing a colon, e.g. "abc:hello".

This module provides flavors that handle these more intelligently, splitting all tag and attribute names into their Prefix and LocalPart components.

Synopsis
data QName text = QName {
qnPrefix :: Maybe text
qnLocalPart :: !text
}
mkQName :: text -> text -> QName text
mkAnName :: text -> QName text
qualifiedStringFlavor :: TreeFlavor (QName String) String
qualifiedByteStringFlavor :: TreeFlavor (QName ByteString) ByteString
qualifiedTextFlavor :: TreeFlavor (QName Text) Text
Documentation
data QName text Source
Constructors
QName
qnPrefix :: Maybe text
qnLocalPart :: !text
show/hide Instances
Eq text => Eq (QName text)
Show text => Show (QName text)
NFData text => NFData (QName text)
mkQName :: text -> text -> QName textSource
Make a new QName from a prefix and localPart.
mkAnName :: text -> QName textSource
Make a new QName with no prefix.
qualifiedStringFlavor :: TreeFlavor (QName String) StringSource
Flavor for qualified tags, using String data type.
qualifiedByteStringFlavor :: TreeFlavor (QName ByteString) ByteStringSource
Flavor for qualified tags, using ByteString data type, containing UTF-8 encoded Unicode.
qualifiedTextFlavor :: TreeFlavor (QName Text) TextSource
Flavor for qualified tags, using Text data type.
Produced by Haddock version 2.4.2