protected XmlSchemaCompletion GetDefaultSchema(XmlElementPath elementPath, XmlSchemaCompletionCollection schemas) { XmlSchemaCompletion defaultSchema = schemas[""]; if (elementPath.Elements.Count > 0) { defaultSchema = schemas[elementPath.GetRootNamespace()]; //schemaFileAssociations.GetSchemaCompletion(editor.FileName); } return(defaultSchema); }
public void RootNamespaceIsEmptyString() { Assert.AreEqual(String.Empty, path.GetRootNamespace()); }
public void GetRootElementNamespace() { Assert.AreEqual("http://foo", path.GetRootNamespace()); }