/// <summary> /// Creates and returns the XML Schema definition for the SpRuDeL reports /// with a ValidationCallback which reports errors to the UI. /// </summary> /// <returns>The corresponding XmlSchemaSet</returns> public XmlSchemaSet getReportSchema() { if (report == null) { var sprudel = XmlReader.Create(new StringReader(SchemaStrings.getReportXSD())); report = new XmlSchemaSet(); report.Add(string.Empty, sprudel); report.ValidationEventHandler += ValidationCallback; } return(report); }
/// <summary> /// Creates and returns the XML Schema definition for the SpRuDeL requests /// with a ValidationCallback which reports errors to the UI. /// </summary> /// <returns>The corresponding XmlSchemaSet</returns> public XmlSchemaSet GetRequestSchema() { if (request == null) { var sprudel = XmlReader.Create(new StringReader(SchemaStrings.getRequestXSD())); request = new XmlSchemaSet(); request.Add("", sprudel); request.ValidationEventHandler += ValidationCallback; } return(request); }