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

In the default representation, 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 functionality to 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
}
type QNode text = Node (QName text) text
type QNodes text = Nodes (QName text) text
type QAttributes text = Attributes (QName text) text
mkQName :: text -> text -> QName text
mkAnQName :: text -> QName text
toQualified :: GenericXMLString text => UNode text -> QNode text
fromQualified :: GenericXMLString text => QNode text -> UNode text
Documentation
data QName text Source

A qualified name.

Qualified names have two parts, a prefix and a local part. The local part is the name of the tag. The prefix scopes that name to a particular group of legal tags.

The prefix will usually be associated with a namespace URI. This is usually achieved by using xmlns attributes to bind prefixes to URIs.

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)
type QNode text = Node (QName text) textSource
Type shortcut for a single node where qualified names are used for tags
type QNodes text = Nodes (QName text) textSource
Type shortcut for nodes where qualified names are used for tags
type QAttributes text = Attributes (QName text) textSource
Type shortcut for attributes with qualified names
mkQName :: text -> text -> QName textSource
Make a new QName from a prefix and localPart.
mkAnQName :: text -> QName textSource
Make a new QName with no prefix.
toQualified :: GenericXMLString text => UNode text -> QNode textSource
fromQualified :: GenericXMLString text => QNode text -> UNode textSource
Produced by Haddock version 2.4.2