5. Compiling and testing the sample commands

  1. Execute ant (see build.xml) in the samples/commands/ directory to compile all sample commands: InsertCharByCodeCmd.java, ConvertCaseCmd.java, ShowMatchingCharCmd.java, WrapElementCmd.java, MakeParagraphsCmd.java. The build creates commands.jar.

  2. Register the commands with XXE by copying customize.xxe to XXE_user_preferences_dir/addon/. XXE user preferences directory is:

    • $HOME/.xxe10/ on Linux.

    • $HOME/Library/Application Support/XMLmind/XMLEditor10/ on the Mac.

    • %APPDATA%\XMLmind\XMLEditor10\ on Windows. Example: C:\Users\john\AppData\Roaming\XMLmind\XMLEditor10\.

      If you cannot see the "AppData" directory using Microsoft Windows File Manager, turn on Tools>Folder Options>View>File and Folders>Show hidden files and folders.

  3. Delete directory XXE_user_preferences_dir/cache/ (which is equivalent to clearing the Quick Start cache in XMLmind XML Editor - Online Help).

  4. Restart XXE.

  5. Open any XHTML document, for example samples/tests/in/sample1.html, then test the sample commands by using the following bindings:

    BindingCommand
    F4 iInsertCharByCodeCmd
    F4 uConverCaseCmd upper
    F4 lConverCaseCmd lower
    F4 cConverCaseCmd capital
    )ShowMatchingCharCmd )
    }ShowMatchingCharCmd }
    ]ShowMatchingCharCmd ]
    F4 tWrapElementCmd
    F4 wMacro invoking MakeParagraphsCmd p followed by paste after[implicitElement]