hextream-0.1.0.1: Streaming-friendly XML parsers

Safe HaskellNone
LanguageHaskell2010

Data.XML.Parser.Mid.Attribute

Description

All documentation examples assume the following setup:

:set -XOverloadedStrings
import Data.Attoparsec.ByteString
Synopsis

Documentation

attribute :: CharParsing m => Monad m => m Attribute Source #

https://www.w3.org/TR/REC-xml/#NT-Attribute

>>> parseOnly attribute "name = 'value'"
Right (Attribute (QName {namePrefix = "", nameLocal = "name"}) [ContentText "value"])