
MarkLogic 10 Product Documentation
cts.validExtractPathcts.validExtractPath(
   string as String,
   [map as Object?]
) as Boolean
Summary
 Parses path expressions and resolves namespaces using the $map parameter.
 Returns true if the argument is permissible as a path for
 extract-path option in extract-document-data
	  
	  
	
	  
	    | Parameters | 
	  
	
	  
	    | string | 
	    
    The path to be tested as a string.
   | 
	  
	  
	    | map | 
	    
  A map of namespace bindings. The keys should be namespace prefixes and the
  values should be namespace URIs. These namespace bindings will be added to
  the in-scope namespace bindings in the evaluation of the path.
   | 
	  
	
Example
  cts.validExtractPath("/foo/bar[@baz = '1']")
  => true
Example
  cts.validExtractPath("/ns1:foo/ns1:bar[@baz = '1']",{ns1:"http://example.org/myns"})
  => true
    Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
    registered trademark of MarkLogic Corporation.