<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.validIndexPath.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.validIndexPath</api:function-name><api:suggest>cts.validindexpath</api:suggest><api:suggest>cts</api:suggest><api:suggest>validindexpath</api:suggest><api:function-link mode="xquery" fullname="cts:valid-index-path">/apidoc/8.0/cts:valid-index-path.xml</api:function-link><api:function mode="javascript" name="validIndexPath" type="builtin" lib="cts" category="SearchBuiltins" subcategory="cts:query Constructors" hidden="false" bucket="MarkLogic Built-In Functions" prefix="cts" namespace="http://marklogic.com/cts" fullname="cts.validIndexPath"><api:summary>
 Parses path expressions and resolves namespaces based on the server
 run-time environment. Returns <code xmlns="http://www.w3.org/1999/xhtml">true</code> if the argument is
 permissible as a path for indexing.
</api:summary><api:params><api:param name="string" type="xs:string"><api:param-description>
    The path to be tested as a string.
  </api:param-description><api:param-name>string</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="ignorens" type="xs:boolean"><api:param-description>
    Ignore namespace prefixes; in other words don't analyze if true.
  </api:param-description><api:param-name>ignorens</api:param-name><api:param-type>Boolean</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  cts.validIndexPath("/aaa:a/bbb:b[1]/ccc:c", false);
  =&gt; true
</pre>
</api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  cts.validIndexPath("/a/b[c=/a/b/d]/p", true);
  =&gt; false
</pre>
</api:example></api:function></api:function-page>