try { System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.LoadXml(xmlStr); return 合格 } catch(Exception ex) { //不合格 }