protected override void Visit(XmlSchema schema)
        {
            if (_dependencySchemaFileNames.Contains(schema.GetLocalPath()) || !_schemas.Add(schema))
                return;

            _targetNamespaces.Push(schema.TargetNamespace);
            foreach (XmlSchemaExternal external in schema.Includes)
                Traverse(external);
            _targetNamespaces.Pop();
        }
Esempio n. 2
0
 public bool IsDependencySchema(XmlSchema schema)
 {
     return _schemaDependencyFiles.Contains(schema.GetLocalPath());
 }