XML : How to ignore unclosed tags on haskell & xml-conduit

I'm writing a parser on haskell for the site using the packages Text.XML and Text.XML.Cursor. There are unclosed tags and get an error:

  Main.hs: Error parsing XML file dat.html: 29:1-29:8: Expected end element for: Name {nameLocalName = "br", nameNamespace = Nothing, namePrefix = Nothing}, but received: EventEndElement (Name {nameLocalName = "body", nameNamespace = Nothing, namePrefix = Nothing})    

What to do? How to ignore such tags?

No comments:

Post a Comment