com.docmosis.template.analysis.structure
Class SimpleXMLTemplateStructureProcessor
java.lang.Object
com.docmosis.template.analysis.structure.SimpleJSONTemplateStructureProcessor
com.docmosis.template.analysis.structure.SimpleXMLTemplateStructureProcessor
- All Implemented Interfaces:
- TemplateStructureProcessor
- public class SimpleXMLTemplateStructureProcessor
- extends SimpleJSONTemplateStructureProcessor
This class can process a template structure and then output the
template information in an XML format. This allows automated processes
to use the Docmosis template to drive various things including building
input web-forms or sample/data processes.
After the processor has been used by the TemplateStructureExtractor, call
the toString() function to get the XML structure. For example:
TemplateIdentifier templateId = new TemplateIdentifier("myTemplate1.doc");
SimpleXMLTemplateStructureProcessor xmlProcessor = new SimpleXMLTemplateStructureProcessor();
TemplateStructureExtractor.process(xmlProcessor, templateId);
System.out.println(xmlProcessor.toString());
SimpleXMLTemplateStructureProcessor
public SimpleXMLTemplateStructureProcessor()
toString
public String toString()
- Overrides:
toString
in class SimpleJSONTemplateStructureProcessor
Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.