xdmp:pretty-print( $xquery as xs:string ) as xs:string
Returns a well-formatted XQuery module.
xdmp:pretty-print("for $x in 1 to 10 return $x") => "for $x in 1 to 10 return $x"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.