Docmosis API 4.5.0

com.docmosis.template.analysis.structure
Class SimpleXMLTemplateStructureProcessor

java.lang.Object
  extended bycom.docmosis.template.analysis.structure.SimpleJSONTemplateStructureProcessor
      extended bycom.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());
 


Constructor Summary
SimpleXMLTemplateStructureProcessor()
           
 
Method Summary
 String toString()
           
 
Methods inherited from class com.docmosis.template.analysis.structure.SimpleJSONTemplateStructureProcessor
conditionalBegin, conditionalEnd, field, finish, image, repeatBegin, repeatEnd, setDataReferenceCollector, start, templateReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleXMLTemplateStructureProcessor

public SimpleXMLTemplateStructureProcessor()
Method Detail

toString

public String toString()
Overrides:
toString in class SimpleJSONTemplateStructureProcessor

Docmosis API 4.5.0

Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.