Esempio n. 1
0
        public XmlSchemaCompletionCollection GetSchemas(XmlElementPath path, XmlSchemaCompletion defaultSchema)
        {
            string namespaceUri = path.GetRootNamespace();

            if (String.IsNullOrEmpty(namespaceUri))
            {
                return(GetSchemaCollectionUsingDefaultSchema(path, defaultSchema));
            }
            return(GetSchemas(namespaceUri));
        }
Esempio n. 2
0
        XmlSchemaCompletion FindSchema(XmlElementPath path)
        {
            XmlSchemaCompletion schema = schemas[path.GetRootNamespace()];

            if ((schema == null) && (defaultSchema != null))
            {
                path.SetNamespaceForUnqualifiedNames(defaultSchema.NamespaceUri);
                return(defaultSchema);
            }
            return(null);
        }
Esempio n. 3
0
 XmlSchemaCompletion FindSchema(XmlElementPath path)
 {
     XmlSchemaCompletion schema = schemas[path.GetRootNamespace()];
     if ((schema == null) && (defaultSchema != null)) {
         path.SetNamespaceForUnqualifiedNames(defaultSchema.NamespaceUri);
         return defaultSchema;
     }
     return null;
 }