com.adobe.idml.samples
Class ImportXmlTemplate
java.lang.Object
com.adobe.idml.samples.ImportXmlTemplate
public class ImportXmlTemplate
- extends java.lang.Object
Merges an IDML file tagged using XML tags feature with an
XML file containing changes for that file.
|
Constructor Summary |
ImportXmlTemplate(java.lang.String xslDirPath)
Instantiates a new ImportXmlTemplate object and creates an XSLLocator for the directory of XSL files provided. |
|
Method Summary |
void |
importXmlFile(java.lang.String inIdmlFilePath,
java.lang.String outIdmlFilePath,
java.lang.String importXmlFilePath)
Imports an XML file to the root as if the file were imported through Indesign's
Import XML feature. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportXmlTemplate
public ImportXmlTemplate(java.lang.String xslDirPath)
throws java.io.IOException
- Instantiates a new ImportXmlTemplate object and creates an XSLLocator for the directory of XSL files provided.
- Parameters:
xslDirPath - The path to the XSL files needed for transforms.
- Throws:
java.io.IOException
importXmlFile
public void importXmlFile(java.lang.String inIdmlFilePath,
java.lang.String outIdmlFilePath,
java.lang.String importXmlFilePath)
throws java.lang.Exception
- Imports an XML file to the root as if the file were imported through Indesign's
Import XML feature. This sample is designed to work with image and text changes.
Table changes are not supported in this sample.
- Parameters:
inIdmlFilePath - An IDML file with tagged content to be replaced.importXmlFilePath - An XML file with new content designed to update the input file from root.outIdmlFilePath - The file to be created when the input IDML file is merged with the import XML file.
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
- Parameters:
args -
Copyright © 2008 Adobe Systems Incorporated. All Rights Reserved.