
MarkLogic 10 Product Documentation
admin.databaseIncludedElementadmin.databaseIncludedElement(
   namespace as String?,
   localname as String,
   weight as Number,
   attribute-namespace as String?,
   attribute-localname as String,
   attribute-value as String
) as element(db.includedElement)
Summary
		  This function constructs an included element specification.
	  
	  
	  
	
	  
	    | Parameters | 
	  
	
	  
	    | namespace | 
	    
	      The namespace URI.  Specify an empty string if the
	      element is in no namespace.
       | 
	  
	  
	    | localname | 
	    
	      The local name for the node.
       | 
	  
	  
	    | weight | 
	    
	      The query weight to use in relevance calculations.
       | 
	  
	  
	    | attribute-namespace | 
	    
	      The namespace for the attribute to constrain on.  Specify an
	      empty string if there is no attribute to constrain on or if the
	      attribute is in no namespace.
       | 
	  
	  
	    | attribute-localname | 
	    
	      The local name of the attribute to constrain on. Specify an
	      empty string if there is no attribute to constrain on.
       | 
	  
	  
	    | attribute-value | 
	    
	      The value for the attribute to constrain on (only attributes with
	      this value). Specify an empty string if there is no attribute
	      to constrain on.
       | 
	  
	
Example
  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseIncludedElement("http://myuri/namespace",
	"elementName", 1.0, "", "myAttribute", "some value")
   //the constructed element 
  
    Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
    registered trademark of MarkLogic Corporation.