private bool _validateXmlByXsd(string xmlFilePath){
string schemaFilePath = Path.GetFullPath(AWGWebService.Resources.release.G_ABN_ValidateXmlSchema);
XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas.Add(null,schemaFilePath);
settings.ValidationType = ValidationType.Schema;
settings.ValidationEventHandler += new System.Xml.Schema.ValidationEventHandler(settings_ValidationEventHandler);
XmlReader xmlReader = XmlReader.Create(xmlFilePath,settings);
while (xmlReader.Read())
{
if (xmlReader.NodeType == XmlNodeType.Text)
{
Console.WriteLine(xmlReader.Value);
}
}
xmlReader.Close();
return true;
}