Apart from the package descriptor, a {{Code|.xar}} archive contains a directory which includes the actual XQuery modules. For example, the [https://files.basex.org/modules/expath/functx-1.0.xar FunctX XAR archive] is packaged as follows:
<syntaxhighlightpre>
expath-pkg.xml
functx/
functx.xql
functx.xsl
</syntaxhighlightpre>
==Java==