Beispiel #1
0
        public static XmlSchemaSet XmlSchemaSet()
        {
            var xmlSchemaSet = new XmlSchemaSet();

            xmlSchemaSet.Add("http://tempuri.org/po.xsd", XmlReader.Create(XsdResource.Sample()));
            return(xmlSchemaSet);
        }
        public ApiClientXmlValidator(bool skipDataTypes = false)
        {
            AddXsd(Namespace.DigipostApiV7, XsdResource.GetApiV7Xsd());

            if (!skipDataTypes)
            {
                var dataTypesAssembly = GetDataTypesAssembly();
                if (dataTypesAssembly != null)
                {
                    AddXsd(Namespace.DataTypes, XsdResource.GetDataTypesXsd(dataTypesAssembly));
                }
            }
        }
Beispiel #3
0
 public XmlValidatorTestImplementation()
 {
     AddXsd("http://tempuri.org/po.xsd", XmlReader.Create(XsdResource.Sample()));
 }