I am creating an installer in IzPack. It is quite large, and I have broken up my XML files appropriately using <xinclude> and <xfragment> tags. Unfortunately, IzPack does not combine them together when you build your installer. This requires you to package the files with the installer, which just won't work.
I was about to start writing a tool in Java to load the XML files and combine them, but I don't want to go reinventing the wheel.
Do the Java XML libraries provide native handling of xinclude? A google didn't seem to turn up much.
Not a big deal if I have to write this myself, just wanted to check with you guys. Thanks.
Format of XML for example purposes: File1.xml
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<installation version="1.0">
<packs>
<pack name="Transaction Service" id="Transaction Service" required="no" >
<xinclude href="example/File2.xml" />
</pack>
</packs>
File2.xml
<xfragment>
<file src="..." />
</xfragment>
File2 does not need the standard XML header. The xml file is parsed at build time, because the resources it specifies are included in the installer. What isn't included is the actual XML information (order to write the files, where to put them etc.)
What I am looking to have produced:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<installation version="1.0">
<packs>
<pack name="Transaction Service" id="Transaction Service" required="no" >
<file src="..." />
</pack>
</packs>
Thanks, I am going to start whipping it together in Java now, but hopefully someone has a simple answer.
Tim Reynolds