<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sc.schemaFromPath.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sc.schemaFromPath</api:function-name><api:suggest>sc.schemafrompath</api:suggest><api:suggest>sc</api:suggest><api:suggest>schemafrompath</api:suggest><api:function-link mode="xquery" fullname="sc:schema-from-path">/apidoc/8.0/sc:schema-from-path.xml</api:function-link><api:function mode="javascript" name="schemaFromPath" type="builtin" lib="sc" category="SchemaBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sc" namespace="http://marklogic.com/xdmp/schema-components" fullname="sc.schemaFromPath"><api:summary>
  <p xmlns="http://www.w3.org/1999/xhtml">Get a schema object as a value based on its namespace and schema
  location hint.
  </p>
</api:summary><api:params><api:param name="namespace" type="xs:string"><api:param-description>
    The target namespace of the schema. 
  </api:param-description><api:param-name>namespace</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="location" type="xs:string" optional="true"><api:param-description>
    The location of the schema.
  </api:param-description><api:param-name>location</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>schemaRoot()?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
sc.schemaFromPath("http://www.w3.org/1999/xhtml");
  =&gt; 
  [16, 1.1, http://www.w3.org/1999/xhtml at xhtml1.1.xsd global ok]
</pre></api:example></api:function></api:function-page>