diff --git a/src/Text/Taggy/Parser.hs b/src/Text/Taggy/Parser.hs
--- a/src/Text/Taggy/Parser.hs
+++ b/src/Text/Taggy/Parser.hs
@@ -95,6 +95,7 @@
   char '<'
   possibly '<'
   possibly '!'
+  possibly '?'
   skipSpace
   i <- ident
   (as, autoclose) <- attributes cventities
@@ -125,6 +126,7 @@
     tagends = skipSpace >> parseEnd
 
     parseEnd = autoClosing
+           <|> ("?>" *> return False)
            <|> (">" *> return False)
 
     autoClosing = do
diff --git a/taggy.cabal b/taggy.cabal
--- a/taggy.cabal
+++ b/taggy.cabal
@@ -1,5 +1,5 @@
 name:                taggy
-version:             0.1.2
+version:             0.1.3
 synopsis:            Efficient and simple HTML/XML parsing library
 description:         
   /taggy/ is a simple package for parsing HTML (and should work with XML)
