asked on
static void inputXMLValidationEventHandler(object sender, ValidationEventArgs e)
{
if (e.Severity == XmlSeverityType.Warning)
{
Debug.Write("WARNING in XML Messages: ");
Debug.WriteLine(e.Message);
string varErrorMesages = String.Format("Line: {0}, Position: {1} \"{2}\"",e.Exception.LineNumber, e.Exception.LinePosition,e.Exception.Message);
WARNING in XML Messages: Could not find schema information for the element 'doc'.
WARNING in XML Messages: Could not find schema information for the element 'assembly'.
WARNING in XML Messages: Could not find schema information for the element 'name'.
WARNING in XML Messages: Could not find schema information for the element 'members'.
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
Debug.WriteLine(e.Message)
I wil suggest that you capture both e.Message and exception info in varErrorMesages.