XMLReader : how to catch syntax errors in the xml file ?
- by mishal153
Hi,
I have an XML file with syntax errors. eg.
<Viewport thisisbad Left="0" Top="0" Width="1280" Height="720" >
When i create an XML reader it does not throw any errors. I there a way to do syntax checking automatically, like XMLDocument does ?
I have tried setting various XmlReaderSettings flags but found nothing useful.