Defining a new class loader for the XOM
If you do not want the XOM classes to be in the class path of your project, you can define a new class loader for the XOM.
About this task
You can create your own class loader to load the XOM classes at run time.
Implement an instance of EngineLoader to load a file by using xomClassLoader (see EngineLoader).
Procedure
Define a new class loader to load the XOM classes:
URL[] xomFiles = new URL[] {new URL("file:///path/to/xom.jar")};
URLClassLoader xomClassLoader = new URLClassLoader(xomFiles);
EngineLoader loader = new EngineLoader(file, xomClassLoader);