Index: Ringtoets/Common/src/Ringtoets.Common.IO/Readers/CombinedXmlSchemaDefinition.cs
===================================================================
diff -u -r0d6159f5ff86ecb8733595159267c32d68bd4bfb -r7683c48cab2de71c7e6e3960f43d491660a4b552
--- Ringtoets/Common/src/Ringtoets.Common.IO/Readers/CombinedXmlSchemaDefinition.cs (.../CombinedXmlSchemaDefinition.cs) (revision 0d6159f5ff86ecb8733595159267c32d68bd4bfb)
+++ Ringtoets/Common/src/Ringtoets.Common.IO/Readers/CombinedXmlSchemaDefinition.cs (.../CombinedXmlSchemaDefinition.cs) (revision 7683c48cab2de71c7e6e3960f43d491660a4b552)
@@ -26,6 +26,7 @@
using System.Net;
using System.Text;
using System.Xml;
+using System.Xml.Linq;
using System.Xml.Schema;
namespace Ringtoets.Common.IO.Readers
@@ -77,6 +78,16 @@
}
///
+ /// Validates the provided XML document based on the combined schema definition.
+ ///
+ /// The XML document to validate.
+ /// Thrown when the provided XML document does not match the combined schema definition.
+ public void Validate(XDocument document)
+ {
+ document.Validate(xmlSchemaSet, null);
+ }
+
+ ///
/// Check the provided schema definitions for not being null, empty or only containing white spaces.
///
/// A string representing the main schema definition.