| '''Summary'''
|Prints the execution plan of an XQuery expression in its XML representation. This option can also be activated on [[Command-Line Options#BaseX Standalone|command line]] via <code>-x</code>.
|}
===COMPPLAN===
{| width='100%'
|-
| width='120' | '''Signature'''
|{{Code|COMPPLAN [boolean]}}
|-
| '''Default'''
|{{Code|true}}
|-
| '''Summary'''
|Generates the query plan, which can be activated via {{Option|XMLPLAN}}, before or after query compilation. This option can also be activated on [[Command-Line Options#BaseX Standalone|command line]] via <code>-X</code>.
|}
=Changelog=
;Version 10.0
* Removed: <code>COMPPLAN</code>
;Version 9.7