Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] dtd file 'into' a jar

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: luca <luca AT lavabit.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] dtd file 'into' a jar
  • Date: Sat, 29 Aug 2009 01:25:42 +0200

Hi,

we developed an application (jcrocus) with xom to handle xml files.
xml files are validated by a dtd (jcrocus.dtd) file and the following
is the header of our xml files :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE JCrocus SYSTEM "jcrocus.dtd">

The application is packaged on a jar file using ant ; xom is included
in the jar.
So, to use the application we run the jar file and to validate the xml files the jcrocus.dtd must be present in the working directory (same
directory as the jar file). If the dtd file isn't there the application
obviously can't validate xml content.

Is there a way to include dtd 'into' the jar file ?

We actually already include 'non java' content into the jar file, i.e.
icons and images.

Thank you.

Luca.





Archive powered by MHonArc 2.6.24.

Top of Page