示例#1
0
        public override bool Validate(Stream xmlStream)
        {
            bool valid = false;

            try
            {
                string path          = Globals.ApplicationMapPath;
                string desktopFolder = Util.Utility.DesktopModuleFolderName.Replace("/", @"\");
                string fullPath      = path + desktopFolder + "Content.Publish.xsd";
                SchemaSet.Add("", fullPath);
                valid = base.Validate(xmlStream);
            }
            catch (Exception ex)
            {
                Errors.Add(ex.ToString());
            }

            return(valid);
        }
 public override bool Validate(Stream XmlStream)
 {
     SchemaSet.Add("", GetDnnSchemaPath(XmlStream));
     return(base.Validate(XmlStream));
 }
示例#3
0
 public bool Validate(string xmlFilename, string schemaFileName)
 {
     SchemaSet.Add("", schemaFileName);
     return(Validate(xmlFilename));
 }
示例#4
0
 public bool Validate(Stream xmlStream, string schemaFile)
 {
     SchemaSet.Add("", schemaFile);
     return(base.Validate(xmlStream));
 }