XmlSchemaCompletion ReadSchema(string fileName, bool readOnly) { try { string baseUri = XmlSchemaCompletion.GetUri(fileName); XmlSchemaCompletion schema = factory.CreateXmlSchemaCompletionData(baseUri, fileName); schema.FileName = FileName.Create(fileName); schema.IsReadOnly = readOnly; return(schema); } catch (Exception ex) { schemaErrors.Add(new RegisteredXmlSchemaError("Unable to read schema '" + fileName + "'.", ex)); } return(null); }
XmlSchemaCompletion LoadSchema(string fileName) { string baseUri = XmlSchemaCompletion.GetUri(fileName); return(factory.CreateXmlSchemaCompletionData(baseUri, fileName)); }