WAS v8.5 > Develop applications > XML applications > Use the XML API to perform operationsPrecompiling
We can use this information to help to precompile an expression, query, or stylesheet.
Subtopics
- Precompiling using the command-line tools
We can use the CompileXSLT tool to precompile one or morestylesheets, use the CompileXPath tool to precompile one or more XPath expressions, and use the CompileXQuery tool to precompile one or more XQuery expressions.- Precompiling using ANT tasks
We can use the TaskCompileXPath, TaskCompileXQuery, and TaskCompileXSLT ANT tasks as alternatives to using the CompileXPath, CompileXQuery, and CompileXSLT commands.- Precompiling in Java
We can use the XCompilationFactory interface and its various compile and load methods to compile an expression, query, or stylesheet in advance. The Java classes can be loaded at execution time, therefore avoiding the cost of compilation in the application run time.- Loading a precompiled executable
We can use the XCompilationFactory interface and its various load methods to load a precompiled expression, query, or stylesheet. These load methods load the Java classes and return an XPathExecutable, XQueryExecutable, or XSLTExecutable object respectively.
Related
Precompiling using the command-line tools
Precompiling in Java
Loading a precompiled executable