vb.net Code:
Try Dim x As New XmlDocument x.LoadXml(myxml) ' if myxml contains invalid xml at this point then .... ' it goes straight to Catch ex As XmlException MessageBoxEx.Show(ex.Message.ToString, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) End Try ' without passing Go, without collecting 200 currency units, and leaving x as an empty document ' it never validates according to schema only by the default xml standard ' and as there is no location information in this error message .... !




Reply With Quote