Closed ocramz closed 6 years ago
λ> isRight $ Text.XML.Hexml.parse "<b>" False λ> Xeno.SAX.validate "<b>" True
That's a SAX parser, so it doesn't look at hierarchy, it only validates lexical correctness.
<b> is valid, but e.g. <b would not validate.
<b>
<b
Try the DOM module.
So I guess it's worth a note in haddocks