In XmlValidatingReader, you can not determine the element/attribute name
which caused the error but you can find out the line number and position
where the error occured. This information is available on the
XmlSchemaException, if you have hooked up a validation event handler.
Zafar
"nataly" <na****@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
I show some Xml file in Windows TreeView control. Wenn I validate Xml with
some Xml-Schema, I have to show errors node with red color.
How can I find an element name, which causes an Exception of
XmlValidatingReader?