/// <summary> /// Import schema definitions for a specified namespace. That is, add the element and attribute declarations and type definitions /// contained in a given namespace to the static context for the XPath expression. /// </summary> /// <remarks> /// <para>This method will not cause the schema to be loaded. That must be done separately, using the /// <c>SchemaManager</c>}. This method will not fail if the schema has not been loaded (but in that case /// the set of declarations and definitions made available to the XPath expression is empty). The schema /// document for the specified namespace may be loaded before or after this method is called. /// </para> /// <para> /// This method does not bind a prefix to the namespace. That must be done separately, using the /// <c>declareNamespace</c> method. /// </para> /// </remarks> /// <param name="uri">The namespace URI whose declarations and type definitions are to /// be made available for use within the XPath expression.</param> /// public void ImportSchemaNamespace(String uri) { if (cache != null) { cache.Clear(); } env.getImportedSchemaNamespaces().add(uri); }
/// <summary> /// Import schema definitions for a specified namespace. That is, add the element and attribute declarations and type definitions /// contained in a given namespace to the static context for the XPath expression. /// </summary> /// <remarks> /// <para>This method will not cause the schema to be loaded. That must be done separately, using the /// <c>SchemaManager</c>}. This method will not fail if the schema has not been loaded (but in that case /// the set of declarations and definitions made available to the XPath expression is empty). The schema /// document for the specified namespace may be loaded before or after this method is called. /// </para> /// <para> /// This method does not bind a prefix to the namespace. That must be done separately, using the /// <c>declareNamespace</c> method. /// </para> /// </remarks> /// <param name="uri">The namespace URI whose declarations and type definitions are to /// be made available for use within the XPath expression.</param> /// public void ImportSchemaNamespace(String uri) { env.getImportedSchemaNamespaces().add(uri); }