Originally posted by: SystemAdmin
Below is a sample that enters one X12 Trading Partner and three Post Offices. You will have to modify the DTD name to match the version in use (which may be "mercpm61.dtd"); you may also have to fully qualify the path to that DTD if it's not in the same directory as the XML Autoload.
If you are familiar with Datastage TX mapping, it may help you to generate a type tree from the DTD and generate your XML that way.
code:1:c26c84c6d1<?xml version="1.0"?>
<!-- Mercator Partner Manager Autoload Sample XML -->
<!DOCTYPE PartnerManagerAutoLoad SYSTEM "mercpm70.dtd">
<PartnerManagerAutoLoad>
<X12TradingPartners>
<IntExt>I</IntExt>
<PartnerName>Test Partner Name</PartnerName>
<IchgQual>ZZ</IchgQual>
<IchgID>558521</IchgID>
<Auth>Auth</Auth>
<SecurityQual>00</SecurityQual>
<SecurityPassword>SamplePassword</SecurityPassword>
<IchgCtrlStdsID>U</IchgCtrlStdsID>
<IchgCtrlVerNo>00305</IchgCtrlVerNo>
<ElementSeparator>21</ElementSeparator>
<SubElementSeparator>0D 0A</SubElementSeparator>
<SegmentTerminator>0D</SegmentTerminator>
</X12TradingPartners>
<PostOffices>
<POName>TEST Post Office1</POName>
<Get_Put_Indicator>G</Get_Put_Indicator>
<POType>FILE</POType>
<AdapterString1>U:\UnixDir</AdapterString1>
</PostOffices>
<PostOffices>
<POName>TEST Post Office2</POName>
<Get_Put_Indicator>G</Get_Put_Indicator>
<POType>FILE</POType>
<AdapterString1>U:\UnixDir</AdapterString1>
</PostOffices>
<PostOffices>
<POName>TEST Post Office3</POName>
<Get_Put_Indicator>G</Get_Put_Indicator>
<POType>FILE</POType>
<AdapterString1>U:\UnixDir</AdapterString1>
</PostOffices>
<PostOffices>
<POName>TEST Post Office4</POName>
<Get_Put_Indicator>G</Get_Put_Indicator>
<POType>FILE</POType>
<AdapterString1>U:\UnixDir</AdapterString1>
</PostOffices>
</PartnerManagerAutoLoad>[/code:1:c26c84c6d1]
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender