Hi,

I'm validating an XML in my textbox against an xsd. This works fine, but it doesn't return the line-position(s) and number(s) where the error occurs.

I simply use:
Code:
Private Sub ValidationEventHandler(ByVal sender As Object, ByVal e As ValidationEventArgs)
   MsgBox(e.Exception.ToString & vbnewline & e.exception.linenumber.tostring & vbnewline & e.exception.lineposition.tostring)
End sub
Position and Number return: 0

What can this be? If you need more code, let me know.

Thanks for the help in advance.