XMLReader : how to catch syntax errors in the xml file ?
Posted
by mishal153
on Stack Overflow
See other posts from Stack Overflow
or by mishal153
Published on 2010-05-07T05:57:44Z
Indexed on
2010/05/07
6:08 UTC
Read the original article
Hit count: 206
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.
© Stack Overflow or respective owner