xdmp.prettyPrint( xquery as String ) as String
Returns a well-formatted XQuery module.
xdmp.prettyPrint("for $x in 1 to 10 return $x"); => "for $x in 1 to 10 return $x"