Sample adapter configuration file for the File XML Document Output adapter.
<?xml version="1.0" encoding="utf-8"?> <Adapter> <Name>file_xmldoc_output</Name> <Description>An adapter which transforms ESP data to String and save to xml file on local hard disk.</Description> <Log4jProperty>./log4j.properties</Log4jProperty> <Modules> <Module type="espconnector"> <InstanceName>MyOutStream_Subscriber</InstanceName> <Name>EspSubscriber</Name> <Next>XmlDocOutputFormatter</Next> <Parameters> <EspSubscriberParameters> <ProjectName>XMLDOCOUTROOTELEM</ProjectName> <StreamName>BaseOutput</StreamName> </EspSubscriberParameters> </Parameters> </Module> <Module type="formatter"> <InstanceName>XmlDocOutputFormatter</InstanceName> <Name>EspToXmlDocStringFormatter</Name> <Next>FileOutputTransporter</Next> <Parallel>true</Parallel> <Parameters> <EspToXmlDocStringFormatterParameters> <XMLSchemaFilePath>outschema.xsd</XMLSchemaFilePath> <GlobalElementLocalName>purchase-order</GlobalElementLocalName> <ColsMapping> <Column>/*[namespace-uri()='http://openuri.org/easypo' and local-name()='purchase-order']/@*[namespace-uri()='http://openuri.org/easypo' and local-name()='id']</Column> <Column>/*[namespace-uri()='http://openuri.org/easypo' and local-name()='purchase-order']/*[namespace-uri()='http://openuri.org/easypo' and local-name()='name']</Column> <Column>/*[namespace-uri()='http://openuri.org/easypo' and local-name()='purchase-order']/*[namespace-uri()='http://openuri.org/easypo' and local-name()='price']</Column> </ColsMapping> </EspToXmlDocStringFormatterParameters> </Parameters> </Module> <Module type="transporter"> <InstanceName>FileOutputTransporter</InstanceName> <Name>FileOutputTransporter</Name> <Parameters> <FileOutputTransporterParameters> <Dir>./data</Dir> <File>output.xml</File> <AccessMode>rowBased</AccessMode> <AppendMode>false</AppendMode> </FileOutputTransporterParameters> </Parameters> </Module> </Modules> <EspProjects> <EspProject> <Name>XMLDOCOUTROOTELEM</Name> <Uri>esp://localhost:19011/sample_workspace/file_xmldoc_output</Uri> <Security> <User></User> <Password encrypted="false"></Password> <AuthType>user_password</AuthType> </Security> </EspProject> </EspProjects> <GlobalParameters></GlobalParameters> </Adapter>