public override string Format(string input) { if (!_validator.IsValid(input)) { throw new ValidationException(); } return("formatlanmış metin"); }
/// <summary> /// Check if the provided XML is valid according to @xmlScheme /// </summary> /// <param name="xmlScheme"></param> /// <param name="xmlInstance"></param> /// <returns></returns> public static bool IsXmlValid(string xmlScheme, string xmlInstance) { XmlValidator xmlSchemaValidator = new XmlValidator(); return xmlSchemaValidator.IsValid(null, xmlScheme, xmlInstance); }