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:
Position and Number return: 0Code: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
What can this be? If you need more code, let me know.
Thanks for the help in advance.





Reply With Quote