Index: Ringtoets/Common/src/Ringtoets.Common.IO/Readers/ConfigurationReader.cs =================================================================== diff -u -rb0021f2db39d2455a22c14bd3708ff2fc2a9e817 -rf01270a101fcbc005cffb4ba740c3e5f318d206d --- Ringtoets/Common/src/Ringtoets.Common.IO/Readers/ConfigurationReader.cs (.../ConfigurationReader.cs) (revision b0021f2db39d2455a22c14bd3708ff2fc2a9e817) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Readers/ConfigurationReader.cs (.../ConfigurationReader.cs) (revision f01270a101fcbc005cffb4ba740c3e5f318d206d) @@ -36,7 +36,8 @@ namespace Ringtoets.Common.IO.Readers { /// - /// Base class for reading a configuration from XML and creating a collection of corresponding . + /// Base class for reading a configuration from XML and creating a collection of corresponding + /// , possibly containing one or more . /// /// The type of calculation items read from XML. public abstract class ConfigurationReader @@ -48,7 +49,7 @@ /// Creates a new instance of . /// /// The file path to the XML file. - /// A file reference towards an XML Schema Definition (XSD). + /// A string representing an XML Schema Definition (XSD). /// Thrown when is invalid. /// Thrown when: /// @@ -57,15 +58,15 @@ /// points to a file that does not pass the schema validation. /// /// - protected ConfigurationReader(string xmlFilePath, string schemaResXFileRef) + protected ConfigurationReader(string xmlFilePath, string schemaString) { IOUtils.ValidateFilePath(xmlFilePath); ValidateFileExists(xmlFilePath); xmlDocument = LoadDocument(xmlFilePath); - ValidateToSchema(xmlDocument, schemaResXFileRef, xmlFilePath); + ValidateToSchema(xmlDocument, schemaString, xmlFilePath); ValidateNotEmpty(xmlDocument, xmlFilePath); } @@ -129,13 +130,13 @@ /// Validates the provided XML document based on the provided XML Schema Definition (XSD). /// /// The XML document to validate. - /// A file reference towards the XML Schema Definition (XSD) to use for the validation. + /// A string representing the XML Schema Definition (XSD) to use for the validation. /// The file path the XML document is loaded from. /// Thrown when the provided XML document does not match the provided XML Schema Definition (XSD). - private static void ValidateToSchema(XDocument document, string schemaResXFileRef, string xmlFilePath) + private static void ValidateToSchema(XDocument document, string schemaString, string xmlFilePath) { var xmlSchemaSet = new XmlSchemaSet(); - xmlSchemaSet.Add(XmlSchema.Read(new StringReader(schemaResXFileRef), null)); + xmlSchemaSet.Add(XmlSchema.Read(new StringReader(schemaString), null)); try {