hexpat-0.12: wrapper for expat, the fast XML parserSource codeContentsIndex
Text.XML.Expat.Namespaced
Synopsis
data NName text = NName {
nnNamespace :: Maybe text
nnLocalPart :: !text
}
type NNode text = Node (NName text) text
type NNodes text = [Node (NName text) text]
type NAttributes text = Attributes (NName text) text
mkNName :: text -> text -> NName text
mkAnNName :: text -> NName text
toNamespaced :: (NodeClass n, GenericXMLString text, Ord text, Show text) => n (QName text) text -> n (NName text) text
fromNamespaced :: (NodeClass n, GenericXMLString text, Ord text) => n (NName text) text -> n (QName text) text
xmlnsUri :: GenericXMLString text => text
xmlns :: GenericXMLString text => text
Documentation
data NName text Source

A namespace-qualified tag.

NName has two components, a local part and an optional namespace. The local part is the name of the tag. The namespace is the URI identifying collections of declared tags. Tags with the same local part but from different namespaces are distinct. Unqualified tags are those with no namespace. They are in the default namespace, and all uses of an unqualified tag are equivalent.

Constructors
NName
nnNamespace :: Maybe text
nnLocalPart :: !text
show/hide Instances
Eq text => Eq (NName text)
Show text => Show (NName text)
NFData text => NFData (NName text)
type NNode text = Node (NName text) textSource
Type shortcut for a single node where namespaced names are used for tags
type NNodes text = [Node (NName text) text]Source

DEPRECATED: Use [NNode text] instead.

Type shortcut for nodes where namespaced names are used for tags.

type NAttributes text = Attributes (NName text) textSource
Type shortcut for attributes with namespaced names
mkNName :: text -> text -> NName textSource
Make a new NName from a prefix and localPart.
mkAnNName :: text -> NName textSource
Make a new NName with no prefix.
toNamespaced :: (NodeClass n, GenericXMLString text, Ord text, Show text) => n (QName text) text -> n (NName text) textSource
fromNamespaced :: (NodeClass n, GenericXMLString text, Ord text) => n (NName text) text -> n (QName text) textSource
xmlnsUri :: GenericXMLString text => textSource
xmlns :: GenericXMLString text => textSource
Produced by Haddock version 2.6.1