Description

GenRocket automatically creates a Configurator, after importing an XSD, and converting the XSD's elements into GenRocket Components.  The Configurator produces an XML Document for download to a local computer. The XMLSegmentMergeV2Receiver reads and parses the XML Document and reads and parses the XSD document to automatically configure itself to merge and properly write the nested generated segment data out to one or more XML test data files.


Organization Config.xml

The Config.xml shows the XML instructions GenRocket automatically created for the XMLSegmentMergeV2Receiver, to produce Organization XML Documents. 

 

<config xsdFileName='Organization.xsd'>
  <fileNameSegments>
    <fileNameSegment segmentType='Constant' value='Organization-' />
    <fileNameSegment segmentType='TimeStamp' value='yyyyMMddHHmmss' />
    <fileNameSegment segmentType='Constant' value='-' />
    <fileNameSegment segmentType='Counter' value='1' />
    <fileNameSegment segmentType='Constant' value='.xml' />
  </fileNameSegments>
  <segments>
    <segment tag='organization-document' segmentFile='OrganizationDocumentSegment.xml' alias=''>
      <segment tag='document-generation' segmentFile='DocumentGenerationSegment.xml' alias=''>
        <segment tag='organization' segmentFile='OrganizationSegment.xml' alias=''>
          <segment tag='departments' segmentFile='DepartmentsSegment.xml' alias=''>
            <segment tag='department' segmentFile='DepartmentSegment.xml' alias=''>
              <segment tag='users' segmentFile='UsersSegment.xml' alias=''>
                <segment tag='user' segmentFile='UserSegment.xml' alias=''>
                  <segment tag='addresses' segmentFile='AddressesSegment.xml' alias=''>
                    <segment tag='address' segmentFile='AddressSegment.xml' alias='' />
                  </segment>
                </segment>
              </segment>
            </segment>
          </segment>
        </segment>
      </segment>
    </segment>
  </segments>
  <domainDescriptions>
    <domain originalName='address' genRocketName='Address' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
        <attribute originalName='city' genRocketName='city' />
        <attribute originalName='state' genRocketName='state' />
        <attribute originalName='zip' genRocketName='zip' />
        <attribute originalName='address' genRocketName='address' />
      </attributes>
    </domain>
    <domain originalName='addresses' genRocketName='Addresses' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
      </attributes>
    </domain>
    <domain originalName='department' genRocketName='Department' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
        <attribute originalName='phoneNumber' genRocketName='phoneNumber' />
        <attribute originalName='name' genRocketName='name' />
      </attributes>
    </domain>
    <domain originalName='departments' genRocketName='Departments' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
      </attributes>
    </domain>
    <domain originalName='document-generation' genRocketName='DocumentGeneration' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
      </attributes>
    </domain>
    <domain originalName='organization' genRocketName='Organization' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
        <attribute originalName='name' genRocketName='name' />
      </attributes>
    </domain>
    <domain originalName='organization-document' genRocketName='OrganizationDocument' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
      </attributes>
    </domain>
    <domain originalName='user' genRocketName='User' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
        <attribute originalName='firstName' genRocketName='firstName' />
        <attribute originalName='lastName' genRocketName='lastName' />
        <attribute originalName='middleInitial' genRocketName='middleInitial' />
        <attribute originalName='username' genRocketName='username' />
        <attribute originalName='phoneNumber' genRocketName='phoneNumber' />
        <attribute originalName='password' genRocketName='password' />
      </attributes>
    </domain>
    <domain originalName='users' genRocketName='Users' alias=''>
      <attributes>
        <attribute originalName='id' genRocketName='id' />
      </attributes>
    </domain>
  </domainDescriptions>
</config>