Safe Haskell | None |
---|---|
Language | Haskell2010 |
All documentation examples assume the following setup:
:set -XOverloadedStrings import Data.Attoparsec.ByteString
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"])