Пример #1
0
 bool IsDefaultSchemaNamespaceDefinedInPathsByNamespace(XmlNamespaceCollection namespaces, XmlSchemaCompletion defaultSchema)
 {
     if (defaultSchema != null)
     {
         return(namespaces.Contains(defaultSchema.Namespace));
     }
     return(true);
 }
 void FindNamespacesWithoutAssociatedPaths(XmlNamespaceCollection namespacesInScope)
 {
     foreach (var ns in namespacesInScope)
     {
         if (!HavePathForNamespace(ns))
         {
             _namespacesWithoutPaths.Add(ns);
         }
     }
 }
Пример #3
0
        public XmlCompletionItemCollection GetRootElementCompletion(XmlNamespaceCollection namespaces)
        {
            var items = new XmlCompletionItemCollection();

            foreach (var ns in namespaces)
            {
                foreach (var schema in GetSchemas(ns.Name))
                {
                    items.AddRange(schema.GetRootElementCompletion(ns.Prefix));
                }
            }
            return(items);
        }