hextream-0.3.0.0: Streaming-friendly XML parsers
Safe HaskellNone
LanguageHaskell2010

Data.XML.Parser.Mid.Instruction

Description

Mid-level parsers for XML instructions.

All documentation examples assume the following setup:

:set -XOverloadedStrings
import Data.Attoparsec.ByteString
Synopsis

Documentation

>>> :set -XOverloadedStrings
>>> import Data.Attoparsec.ByteString

instruction :: CharParsing m => Monad m => m Instruction Source #

https://www.w3.org/TR/REC-xml/#dt-pi

>>> parseOnly instruction "<?xml-stylesheet type='text/xsl' href='style.xsl'?>"
Right (Instruction "xml-stylesheet" "type='text/xsl' href='style.xsl'")