Customize a XAR File

Last modified by Eleni Cojocariu-testing account on 2026/08/21 21:47

Steps

To build a XAR holding exactly the Pages you want, when neither the export modal nor the export URL parameters give the selection you need:

  1. Unzip the XAR file, which holds the package.xml file and one XML file per Page.
    package.xml
    Main/WebHome.xml
    Sandbox/WebHome.xml
  2. Delete the files of the Pages you do not want to keep.
  3. Open the package.xml file and remove the <file> entries of those same Pages, under <files>.
      <files>
        <file defaultAction="0" language="">Main.WebHome</file>
        <file defaultAction="0" language="">Sandbox.WebHome</file>
      </files>
  4. Zip the modified package.xml file together with the remaining Page files, naming the archive MyArchive.xar.
  5. Check the result by importing the archive: its "Package Content" lists only the Pages you kept.

    customized-package-content.png

FAQ

Is there another way of customizing a XAR?

Yes, the export modal selects the Pages before the archive is built, and URL parameters do the same without going through the modal.

Related

Get Connected