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)); } } }
public XmlValidatorTestImplementation() { AddXsd("http://tempuri.org/po.xsd", XmlReader.Create(XsdResource.Sample())); }