p:insert( $pipeline-node as node() ) as xs:unsignedLong
Insert a fully constructed content processing pipeline, returning its unique ID. If a pipeline with the same name already exists in the database, it is replaced.
Parameters | |
---|---|
pipeline-node | The pipeline definition. Any pipeline-id element will be ignored. |
xquery version "1.0-ml"; import module namespace p = "http://marklogic.com/cpf/pipelines" at "/MarkLogic/cpf/pipelines.xqy"; p:insert( xdmp:get("/pipelines/myapp.xml")/* )