public void AddRange(XmlSchemaCompletionCollection schemas) { for (int i = 0; i < schemas.Count; i++) { Add(schemas[i]); } }
XmlSchemaCompletionCollection GetSchemaCollectionUsingDefaultSchema(XmlElementPath path, XmlSchemaCompletion defaultSchema) { XmlSchemaCompletionCollection schemas = new XmlSchemaCompletionCollection(); if (defaultSchema != null) { path.SetNamespaceForUnqualifiedNames(defaultSchema.NamespaceUri); schemas.Add(defaultSchema); } return(schemas); }
/*public XmlSchemaCompletion GetSchemaFromFileName(string fileName) * { * foreach (XmlSchemaCompletion schema in this) * { * if (FileUtility.IsEqualFileName(schema.FileName, fileName)) * { * return schema; * } * } * return null; * }*/ public XmlSchemaCompletionCollection GetSchemas(string namespaceUri) { XmlSchemaCompletionCollection schemas = new XmlSchemaCompletionCollection(); foreach (XmlSchemaCompletion schema in this) { if (schema.NamespaceUri == namespaceUri) { schemas.Add(schema); } } return(schemas); }
public XmlSchemaCompletionCollection(XmlSchemaCompletionCollection schemas) { AddRange(schemas); }