Loading TOC...

MarkLogic Server 11.0 Product Documentation
sc.schemaFromPath

sc.schemaFromPath(
   namespace as String,
   [location as String]
) as schemaRoot()?

Summary

Get a schema object as a value based on its namespace and schema location hint.

Parameters
namespace The target namespace of the schema.
location The location of the schema.

Example

sc.schemaFromPath("http://www.w3.org/1999/xhtml");
  => 
  [16, 1.1, http://www.w3.org/1999/xhtml at xhtml1.1.xsd global ok]

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.