A piece of HTML that I'm trying to parse contains some attributes values without quotation marks, for example with width and height attributes:
<img src="/static/logo.png" width=75 height=90 />
In the C# code, the reader reads until the next anchor tag.
while (reader.ReadToFollowing("a"))
This statement reports a XmlException:
'75' is an unexpected token. The expected token is '"' or '''. Line 16, position 37.
Is there some XmlReaderSetting to make the XmlReader more lenient? I do not have control over the generated HTML.