XML Bulk Load schema question

I was wondering if someone could point me in the right direction with a
schema file for importing XML into a DB - the XML file has multiple
sublevels, all of which need to be imported into a single table.

I have it functioning "to an extent", meaning part of the file is imported -
however, some of the sublevels have been driving me nuts, and I am not sure
how to get it to work for all of the columns.

ANY HELP WOULD BE GREATLY APPRECIATED - I've searched high and low for any
documentation that would explain how to write up the schema to be able to
import.

Testing the schema I have created so far works - however, it does not import
all of the record columns in the same row, and I am getting some nulls.
<headerModule> has both elements with data as well as elements with
children.   The children are loading, but the other elements without children
are not (serviceProvider and type).

In addition, it loads all of the data in from the headermodule(1000 rows),
then loads basicmodule (1000 rows) starting on row 1001  - meaning, it doesnt
load headermodule and basicmodule together, it is loading them as separate
blocks of data.

I am just unsure how you go about allowing the sublevel elements to be included in the import into the single table.  I have seen this done before, but the last thread I could find that referenced it was written in Spanish :)


The XML file is as follows:

< xml version="1.0" encoding="ISO-8859-1" >
<!DOCTYPE broadWorksCDR>
<broadWorksCDR version="11.1">
     <cdrData>
          <headerModule>
               <recordId>
                    <eventCounter> </eventCounter>
                    <systemId> </systemId>
                    <date> </date>     
                    <systemTimeZone> </systemTimeZone>
               </recordId>
               <serviceProvider> </serviceProvider>
               <type> </type>
          </headerModule>
          <basicModule>
               <userNumber> </userNumber>
               <groupNumber> </groupNumber>
               <direction> </direction>
               <callingNumber> </callingNumber>
               <callingPresentationIndicator> </callingPresentationIndicator>
               <dialedDigits> </dialedDigits>
               <calledNumber> </calledNumber>
               <networkTranslatedNumber> </networkTranslatedNumber>
               <networkTranslatedGroup> </networkTranslatedGroup>
               <startTime> </startTime>
               <userTimeZone> </userTimeZone>
               <localCallId> </localCallId>
               <remoteCallId> </remoteCallId>
               <answerIndicator> </answerIndicator>
               <answerTime> </answerTime>
               <releaseTime> </releaseTime>
               <terminationCause> </terminationCause>
               <carrierIdentificationCode> </carrierIdentificationCode>
               <callCategory> </callCategory>
               <networkCallType> </networkCallType>
               <chargeIndicator> </chargeIndicator>
               <typeOfNetwork> </typeOfNetwork>
               <releasingParty> </releasingParty>
          </basicModule>
          <centrexModule>
               <group> </group>
               <department> </department>
               <accountCode> </accountCode>     
               <authorizationCode> </authorizationCode>
               <callingPartyCategory> </callingPartyCategory>
               <originalCalledNumber> </originalCalledNumber>
               <originalCalledPresentationIndicator>   </originalCalledPresentationIndicator>                              
               <originalCalledReason> </originalCalledReason>
               <redirectingNumber> </redirectingNumber>
               <redirectingPresentationIndicator> </redirectingPresentationIndicator>
               <redirectingReason> </redirectingReason>
               <serviceExtensionList> 
                
 <serviceExtension>
                     <serviceName> </serviceName>
                     <invocationTime> </invocationTime>
                     <callId> </callId>
                     <to> </to>
                     <from> </from> 
                     <conferenceId> </conferenceId>
                     <role> </role>
                     <bridge> </bridge>
                     <owner> </owner>
                     <ownerDN> </ownerDN>
                     <title> </title>
                     <projectCode> </projectCode>
                     <facResult> </facResult>
               </serviceExtension>
          
</serviceExtensionList>
          </centrexModule>
          <ipModule>
               <route> </route>
               <networkCallID> </networkCallID>     
               <codec> </codec>
               <AccessDeviceAddress> </AccessDeviceAddress>
               <correlationInfo>
                    <key> </key>
                    <creator> </creator>
                    <originatorNetwork> </originatorNetwork>
                    <terminatorNetwork> </terminatorNetwork>
               </correlationInfo>
          </ipModule>
          <partialCallBeginModule>
               <failoverCorrelationId> </failoverCorrelationId>
          </partialCallBeginModule>
          <partialCallEndModule>
               <failoverCorrelationId> </failoverCorrelationId>
          </partialCallEndModule>
     </cdrData>
</broadWorksCDR>


My Schema so far:


< xml version="1.0" >
<Schema xmlns="urn:schemas-microsoft-com:xml-data"
        xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"
        xmlns:sql="urn:schemas-microsoft-com:xml-sql" >

   <ElementType name="eventCounter" dt:type="string" />
   <ElementType name="systemId" dt:type="string" />
   <ElementType name="date" dt:type="string" />
   <ElementType name="systemTimeZone" dt:type="string" />
   <ElementType name="userNumber" dt:type="string" />
   <ElementType name="groupNumber" dt:type="string" />
   <ElementType name="direction" dt:type="string" />
   <ElementType name="callingNumber" dt:type="string" />
   <ElementType name="callingPresentationIndicator" dt:type="string" />
   <ElementType name="dialedDigits" dt:type="string" />
   <ElementType name="calledNumber" dt:type="string" />
   <ElementType name="networkTranslatedNumber" dt:type="string" />
   <ElementType name="networkTranslatedGroup" dt:type="string" />
   <ElementType name="startTime" dt:type="string" />
   <ElementType name="userTimeZone" dt:type="string" />
   <ElementType name="localCallId" dt:type="string" />
   <ElementType name="remoteCallId" dt:type="string" />
   <ElementType name="answerIndicator" dt:type="string" />
   <ElementType name="answerTime" dt:type="string" />
   <ElementType name="releaseTime" dt:type="string" />
   <ElementType name="terminationCause" dt:type="string" />
   <ElementType name="carrierIdentificationCode" dt:type="string" />
   <ElementType name="callCategory" dt:type="string" />
   <ElementType name="networkCallType" dt:type="string" />
   <ElementType name="chargeIndicator" dt:type="string" />
   <ElementType name="typeOfNetwork" dt:type="string" />
   <ElementType name="releasingParty" dt:type="string" />


   <ElementType name="broadWorksCDR" sql:is-constant="1">
      <element type="cdrData" />
   </ElementType>  
  
   <ElementType name="cdrData" sql:is-constant="1">
      <element type="headerModule" />
      <element type="basicModule" />
   </ElementType>
    
     <ElementType name="headerModule" sql:is-constant="1">
      <element type="recordId" />
       </ElementType>

   <ElementType name="recordId"  sql:relation="cdrdata">
      <element type="eventCounter"  sql:field="eventcounter" />
      <element type="systemId" sql:field="systemId" />
      <element type="date"        sql:field="date" />
       <element type="systemTimeZone"        sql:field="systemtimezone" />
   </ElementType>
     
     <ElementType name="basicModule"  sql:relation="cdrdata">
      <element type="userNumber"  sql:field="userNumber" />
      <element type="groupNumber"  sql:field="groupNumber" />
      <element type="direction"  sql:field="direction" />
      <element type="callingNumber"  sql:field="callingNumber" />
      <element type="callingPresentationIndicator" sql:field="callingPresentationIndicator" />
      <element type="dialedDigits"  sql:field="dialedDigits" />
      <element type="calledNumber"  sql:field="calledNumber" />
      <element type="networkTranslatedNumber"  sql:field="networkTranslatedNumber" />
      <element type="networkTranslatedGroup"  sql:field="networkTranslatedGroup" />
      <element type="startTime"  sql:field="startTime" />
      <element type="userTimeZone"  sql:field="userTimeZone" />
      <element type="localCallId"  sql:field="localCallId" />
      <element type="remoteCallId"  sql:field="remoteCallId" />
      <element type="answerIndicator"  sql:field="answerIndicator" />
      <element type="answerTime"  sql:field="answerTime" />
      <element type="releaseTime"  sql:field="releaseTime" />
      <element type="terminationCause"  sql:field="terminationCause" />
      <element type="carrierIdentificationCode"  sql:field="carrierIdentificationCode" />
      <element type="callCategory"  sql:field="callCategory" />
      <element type="networkCallType"  sql:field="networkCallType" />
      <element type="chargeIndicator"  sql:field="chargeIndicator" />
      <element type="typeOfNetwork"  sql:field="typeOfNetwork" />
      <element type="releasingParty"  sql:field="releasingParty" />
   </ElementType>    
    
</Schema>


Someone, anyone, please help!  I'll wash your car and stuff!  I'm really in
a bit of a bind.

Thanks much!



Answer this question

XML Bulk Load schema question

  • Michael Li

    Hey crud, there's a couple things I notice about your files.

    1 - There isn't data in the serviceProvider or type fields in your sample XML file. But assuming that you do have instances with data in those fields, here's what I would try:

    2 - You do not define the elements serviceProvider or type, and you do not specify them to be chidren of headermodule. You should modify your schema as follows:

    Add these to your list of elementtypes at the top
    <ElementType name="serviceProvider" dt:type="string" sql:field="serviceProvider"/>
    <ElementType name="type" dt:type="string" sql:field="type"/>

    Modify your defenition of headerModule like this
    <ElementType name="headerModule" sql:is-constant="1">
    <element type="recordId" />
    <element type="serviceProvider" />
    <element type="type" />
    </ElementType>

    Hope that works!



  • joergA

    I started to convert over to an xsd versus xdr, and have gotten this far...

    I still have had a hard time finding any docs that explain how you are supposed to denote the sublevel elements - I would think this would be relatively easy, as I need to dump all of the data into a single table.

     

    What I have so far (with the sublevels spaced out in accordance with the XML file):

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:sql="urn:schemas-microsoft-com:mapping-schema">

      <xsd:element name="cdrData" sql:relation="cdrData_stage" >
       <xsd:complexType>
         <xsd:sequence>
         
         <xsd:element name="eventCounter"   type="xsd:string"  sql:field="eventcounter" />
         <xsd:element name="systemId"  type="xsd:string"  sql:field="systemId" />
         <xsd:element name="date"         type="xsd:string"  sql:field="date" />
         <xsd:element name="systemTimeZone"         type="xsd:string"  sql:field="systemtimezone" />
         <xsd:element name="serviceProvider"   type="xsd:string"  sql:field="serviceProvider" />
         <xsd:element name="type"  sql:field="type" />
     
         <xsd:element name="userNumber"   type="xsd:string"  sql:field="userNumber" />
         <xsd:element name="groupNumber"   type="xsd:string"  sql:field="groupNumber" />
            <xsd:element name="direction"   type="xsd:string"  sql:field="direction" />
            <xsd:element name="callingNumber"   type="xsd:string"  sql:field="callingNumber" />
            <xsd:element name="callingPresentationIndicator"   type="xsd:string"  sql:field="callingPresentationIndicator" />
            <xsd:element name="dialedDigits"   type="xsd:string"  sql:field="dialedDigits" />
            <xsd:element name="calledNumber"   type="xsd:string"  sql:field="calledNumber" />
            <xsd:element name="networkTranslatedNumber"   type="xsd:string"  sql:field="networkTranslatedNumber" />
            <xsd:element name="networkTranslatedGroup"   type="xsd:string"  sql:field="networkTranslatedGroup" />
            <xsd:element name="startTime"   type="xsd:string"  sql:field="startTime" />
            <xsd:element name="userTimeZone"   type="xsd:string"  sql:field="userTimeZone" />
            <xsd:element name="localCallId"   type="xsd:string"  sql:field="localCallId" />
            <xsd:element name="remoteCallId"   type="xsd:string"  sql:field="remoteCallId" />
            <xsd:element name="answerIndicator"   type="xsd:string"  sql:field="answerIndicator" />
            <xsd:element name="answerTime"   type="xsd:string"  sql:field="answerTime" />
            <xsd:element name="releaseTime"   type="xsd:string"  sql:field="releaseTime" />
            <xsd:element name="terminationCause"   type="xsd:string"  sql:field="terminationCause" />
            <xsd:element name="carrierIdentificationCode"   type="xsd:string"  sql:field="carrierIdentificationCode" />
            <xsd:element name="callCategory"   type="xsd:string"  sql:field="callCategory" />
            <xsd:element name="networkCallType"   type="xsd:string"  sql:field="networkCallType" />
            <xsd:element name="chargeIndicator"   type="xsd:string"  sql:field="chargeIndicator" />
            <xsd:element name="typeOfNetwork"   type="xsd:string"  sql:field="typeOfNetwork" />
            <xsd:element name="releasingParty"   type="xsd:string"  sql:field="releasingParty" />

            <xsd:element name="group"   type="xsd:string"  sql:field="group" />
            <xsd:element name="department"   type="xsd:string"  sql:field="department" />
            <xsd:element name="accountCode"   type="xsd:string"  sql:field="accountCode" />     
            <xsd:element name="authorizationCode"   type="xsd:string"  sql:field="authorizationCode" />
            <xsd:element name="callingPartyCategory"   type="xsd:string"  sql:field="callingPartyCategory" />
            <xsd:element name="originalCalledNumber"   type="xsd:string"  sql:field="originalCalledNumber" />
            <xsd:element name="originalCalledPresentationIndicator" type="xsd:string"  sql:field="originalCalledPresentationIndicator" />                              
          <xsd:element name="originalCalledReason"   type="xsd:string"  sql:field="originalCalledReason" />
            <xsd:element name="redirectingNumber"   type="xsd:string"  sql:field="redirectingNumber" />
            <xsd:element name="redirectingPresentationIndicator" type="xsd:string"  sql:field="redirectingPresentationIndicator" />
            <xsd:element name="redirectingReason"   type="xsd:string"  sql:field="redirectingReason" />

      <xsd:element name="serviceName"   type="xsd:string"  sql:field="serviceName" />
      <xsd:element name="invocationTime"   type="xsd:string"  sql:field="invocationTime" />
      <xsd:element name="callId"   type="xsd:string"  sql:field="callId" />
      <xsd:element name="to"   type="xsd:string"  sql:field="to" />
      <xsd:element name="from"   type="xsd:string"  sql:field="from" />
      <xsd:element name="conferenceId"   type="xsd:string"  sql:field="conferenceId" />
      <xsd:element name="role"   type="xsd:string"  sql:field="role" />
      <xsd:element name="bridge"   type="xsd:string"  sql:field="bridge" />
      <xsd:element name="owner"   type="xsd:string"  sql:field="owner" />
      <xsd:element name="ownerDN"   type="xsd:string"  sql:field="ownerDN" />
      <xsd:element name="title"   type="xsd:string"  sql:field="title" />
           <xsd:element name="projectCode"   type="xsd:string"  sql:field="projectCode" />
      <xsd:element name="facResult"   type="xsd:string"  sql:field="facResult" />
      
      <xsd:element name="route"   type="xsd:string"  sql:field="route" />
            <xsd:element name="networkCallID"   type="xsd:string"  sql:field="networkCallID" />     
            <xsd:element name="codec"   type="xsd:string"  sql:field="codec" />
      <xsd:element name="AccessDeviceAddress"   type="xsd:string"  sql:field="AccessDeviceAddress" />

      <xsd:element name="key"   type="xsd:string"  sql:field="key" />
            <xsd:element name="creator"   type="xsd:string"  sql:field="creator" />
      <xsd:element name="originatorNetwork"   type="xsd:string"  sql:field="originatorNetwork" />
            <xsd:element name="terminatorNetwork"   type="xsd:string"  sql:field="terminatorNetwork" />
      
           <xsd:element name="failoverCorrelationId"   type="xsd:string"  sql:field="failoverCorrelationId" />
       
           <xsd:element name="failoverCorrelationId"   type="xsd:string"  sql:field="failoverCorrelationId" />
       
         </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>


  • MikeTheMechanic

    I am not sure about this being the right way to do it, but here's what I'd try to do. You basically have one master element of cdrData, and all the other elements belong to that. So try to define it as one giant complex type in your schema, with each module as a complex type within that larger complex type, like so:

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sql="urn:schemas-microsoft-com:mapping-schema">

    <xs:element name="cdrData" sql:relation="cdrData_stage">
    <xs:complexType>
    <xs:sequence>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="headerModule" sql:relation="cdrData_stage">
    <xs:complexType>
    <xs:attribute name="eventCounter" type="xs:string" sql:field=" "/>
    <xs:attribute name="next child of headermodule" type="xs:string" sql:field=" "/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:sequence>
    <xs:element name="basicModule" sql:relation="<xs:attribute name="eventCounter" type="xs:string" sql:field=" "/>">
    <xs:complexType>
    <xs:attribute name="userNumber" type="xs:string" sql:field=" "/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>

    and so on....

    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    Hope this helps!



  • leighsword

    Clubber - thanks for the reply - and I probably shoul dhave noted that file was a "working file".

    I had not posted up the complete xdr "test" file I have been playing with that did have those elements - I was trying to get at least 1 section working, and then go from there.

    However - when I did have the headermodule, basicmodule and centrexmodule elements listed, the imports were sucessful although I could only get it to import their 1st level children - AND, they would import in succession (100 records would import as 100 rows with headermodule and all others null, then 100 rows basicmodule all others null, then 100 rows centrexmodule all others null).

    I need the data from each XML record in a single row, single table, as this is how many other processes that are utilizing this data are accessing it.

    I switched over to the xsd file in my last post as this might help, but I am not sure.

    I will also up my offer to wash your car if you can help me :)

     


  • Dmitry Pavlov

    Clubber, again, thanks so much for taking the time to work thru this with me. I really, really appreciate it.

    At the same time you replied, I had another post up on the newsgroups and someone from MS was replying with the exact same answer you did :)

    So, for anyone who might find this thread and look for a similar answer, the final .xsd that is now working perfectly consists of the following:

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sql="urn:schemas-microsoft-com:mapping-schema">

    <xsd:element name="cdrData" sql:relation="cdrData_stage" >
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="headerModule" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="recordId" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="eventCounter" type="xsd:string" sql:field="eventcounter" />
    <xsd:element name="systemId" type="xsd:string" sql:field="systemId" />
    <xsd:element name="date" type="xsd:string" sql:field="date" />
    <xsd:element name="systemTimeZone" type="xsd:string" sql:field="systemtimezone" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="serviceProvider" type="xsd:string" sql:field="serviceProvider" />
    <xsd:element name="type" type="xsd:string" sql:field="type" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="basicModule" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="userNumber" type="xsd:string" sql:field="userNumber" />
    <xsd:element name="groupNumber" type="xsd:string" sql:field="groupNumber" />
    <xsd:element name="direction" type="xsd:string" sql:field="direction" />
    <xsd:element name="callingNumber" type="xsd:string" sql:field="callingNumber" />
    <xsd:element name="callingPresentationIndicator" type="xsd:string" sql:field="callingPresentationIndicator" />
    <xsd:element name="dialedDigits" type="xsd:string" sql:field="dialedDigits" />
    <xsd:element name="calledNumber" type="xsd:string" sql:field="calledNumber" />
    <xsd:element name="networkTranslatedNumber" type="xsd:string" sql:field="networkTranslatedNumber" />
    <xsd:element name="networkTranslatedGroup" type="xsd:string" sql:field="networkTranslatedGroup" />
    <xsd:element name="startTime" type="xsd:string" sql:field="startTime" />
    <xsd:element name="userTimeZone" type="xsd:string" sql:field="userTimeZone" />
    <xsd:element name="localCallId" type="xsd:string" sql:field="localCallId" />
    <xsd:element name="remoteCallId" type="xsd:string" sql:field="remoteCallId" />
    <xsd:element name="answerIndicator" type="xsd:string" sql:field="answerIndicator" />
    <xsd:element name="answerTime" type="xsd:string" sql:field="answerTime" />
    <xsd:element name="releaseTime" type="xsd:string" sql:field="releaseTime" />
    <xsd:element name="terminationCause" type="xsd:string" sql:field="terminationCause" />
    <xsd:element name="carrierIdentificationCode" type="xsd:string" sql:field="carrierIdentificationCode" />
    <xsd:element name="callCategory" type="xsd:string" sql:field="callCategory" />
    <xsd:element name="networkCallType" type="xsd:string" sql:field="networkCallType" />
    <xsd:element name="chargeIndicator" type="xsd:string" sql:field="chargeIndicator" />
    <xsd:element name="typeOfNetwork" type="xsd:string" sql:field="typeOfNetwork" />
    <xsd:element name="releasingParty" type="xsd:string" sql:field="releasingParty" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="centrexModule" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="group" type="xsd:string" sql:field="group" />
    <xsd:element name="department" type="xsd:string" sql:field="department" />
    <xsd:element name="accountCode" type="xsd:string" sql:field="accountCode" />
    <xsd:element name="authorizationCode" type="xsd:string" sql:field="authorizationCode" />
    <xsd:element name="callingPartyCategory" type="xsd:string" sql:field="callingPartyCategory" />
    <xsd:element name="originalCalledNumber" type="xsd:string" sql:field="originalCalledNumber" />
    <xsd:element name="originalCalledPresentationIndicator" type="xsd:string" sql:field="originalCalledPresentationIndicator" />

    <xsd:element name="originalCalledReason" type="xsd:string" sql:field="originalCalledReason" />
    <xsd:element name="redirectingNumber" type="xsd:string" sql:field="redirectingNumber" />
    <xsd:element name="redirectingPresentationIndicator" type="xsd:string" sql:field="redirectingPresentationIndicator" />
    <xsd:element name="redirectingReason" type="xsd:string" sql:field="redirectingReason" />
    <xsd:element name="serviceExtensionList" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="serviceExtension" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="serviceName" type="xsd:string" sql:field="serviceName" />
    <xsd:element name="invocationTime" type="xsd:string" sql:field="invocationTime" />
    <xsd:element name="callId" type="xsd:string" sql:field="callId" />
    <xsd:element name="to" type="xsd:string" sql:field="to" />
    <xsd:element name="from" type="xsd:string" sql:field="from" />
    <xsd:element name="conferenceId" type="xsd:string" sql:field="conferenceId" />
    <xsd:element name="role" type="xsd:string" sql:field="role" />
    <xsd:element name="bridge" type="xsd:string" sql:field="bridge" />
    <xsd:element name="owner" type="xsd:string" sql:field="owner" />
    <xsd:element name="ownerDN" type="xsd:string" sql:field="ownerDN" />
    <xsd:element name="title" type="xsd:string" sql:field="title" />
    <xsd:element name="projectCode" type="xsd:string" sql:field="projectCode" />
    <xsd:element name="facResult" type="xsd:string" sql:field="facResult" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ipModule" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="route" type="xsd:string" sql:field="route" />
    <xsd:element name="networkCallID" type="xsd:string" sql:field="networkCallID" />
    <xsd:element name="codec" type="xsd:string" sql:field="codec" />
    <xsd:element name="AccessDeviceAddress" type="xsd:string" sql:field="AccessDeviceAddress" />
    <xsd:element name="correlationInfo" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="key" type="xsd:string" sql:field="key" />
    <xsd:element name="creator" type="xsd:string" sql:field="creator" />
    <xsd:element name="originatorNetwork" type="xsd:string" sql:field="originatorNetwork" />
    <xsd:element name="terminatorNetwork" type="xsd:string" sql:field="terminatorNetwork" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="partialCallBeginModule" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="failoverCorrelationId" type="xsd:string" sql:field="failoverCorrelationId" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="partialCallEndModule" sql:is-constant="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="failoverCorrelationId" type="xsd:string" sql:field="failoverCorrelationId2" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>


  • XML Bulk Load schema question