Using xmlparserv2.jar in Altova XMLSpy

This a short howto about using Oracle xmlparserv2 in Altova XMLSpy. At the end there is a ready to us xmlparserv2standalone for download.

  1. Get xmlparserv2.jar from jdev or oc4j lib directory.
    D:\oc4j\lib\xmlparserv2.jar
  2. Unzip xmlparserv2 into any temp directory.
    For example: D:\xmlpaserv2_unzip_directory
  3. Edit:
    D:\xmlpaserv2_unzip_directory\META-INF\MANIFEST.MF
    add the Main-Class for the xsl parser:
    Manifest-Version: 1.0
    Created-By: 1.4.2_10 (Sun Microsystems Inc.)
    Main-Class: oracle.xml.parser.v2.oraxsl

    Keep a blank line at the end of the file.
  4. Create a new jar archive
    D:\xmlpaserv2_unzip_directory> jar cmf D:\xmlpaserv2_unzip_directory\META-INF\MANIFEST.MF xmlparserv2standalone.jar *
  5. Write a command script to start xmlparserv2standalone from XMLSpy.
    Insert the following command:
    java -jar D:\Tools\lib\xmlparserv2standalone.jar %1 %3 >%2
  6. Edit XMLSpy Option to use the command script and xmlparserv2standalone.jar:

That’s it.

Prepared Oracle xmlparserv2standalone for download: xmlparserv2standalone