Dynamically rename the root node of XML based on the child elements

Hi Gurus,
Is there any way to rename the root node of the resultant XML after a mapping based on the child elements.
For ex:
consider the following resultant XML after mapping
<result>
<element1> </element1>
<result>
if the element1 is <type> then the output should be
<category>
<type> </type>
</category>
elseif the element1 is <character> then the output should be
<property>
<character> </character>
</property>
Let me know how to do this, either in XSLT or in Graphical mapping.
Thanks,
Prabu

Hi, Prabu:
In this case, I am suggest you have Src and Tar Message.
I am suggesting you create another type of message using key / value pair as I suggested, e.g. called Mid Message.
My solution for you is to have two message mappings:
1. Src -> Mid
2. Mid -> Tar.
In first mapping, you have no control of the structure, but you can map it to Mid structure:
e.g.
  if Type node Exist, then map 'Type' to Key, as Key/Value can be creatd under a parent node with 0:1 Occurrence.
  saying item.
   in this case, a new item created.
If you think of this way, any xml file can be represted in this way:
   <Employee>
      <Fname>David</Fname>
      <Lname>Miller</Lname>
   </Employee>  
   <Employee>
      <Fname>Steve</Fname>
      <Lname>Mai</Lname>
   </Employee>   
Can be interpretd as this way:
   <Employee>
      <Element>
         <key>Fname</Key>
         <value>David</Value>
      </Element>
      <Element>
         <key>Lname</Key>
         <value>Miller</Value>
      </Element>
   </Employee>  
   <Employee>
      <Element>
         <key>Fname</Key>
         <value>Steve</Value>
      </Element>
      <Element>
         <key>Lname</Key>
         <value>Mai</Value>
      </Element>
   </Employee> 
Now you should understand what I mean.
In your case target structure have to desgined as following way:
You need to put Category and Property together with their sub-structure in parallel, make occurence to 0:1
In your second mapping, you can check the key value is "Type" or "Character", based on which one is true,
you create corresponding structure: either Categary or Property.
Regards
Liang
Edited by: Liang Ji on Oct 22, 2010 8:31 PM
Edited by: Liang Ji on Oct 22, 2010 8:35 PM

Similar Messages

  • Validation to find the Root Node !!!!

    Hi All,
    Is it possible to write a Validation to find the Root Node of the Hierarchy,
    For E.g.  If we have a three level hierarchy
    Printer
            Dot Matrix
                          T123
    So is there a way I can check if my Root node value is Printer or not, because in Data Manager the value that is selected from the hierarchy drop down is the leaf node.
    Regards,
    Parul

    Hi Jitesh,
    The solution is as follows:
    MDM does not give us the option to traverse to the grandparent of the leaf node..
    In the example that we have taken :
    Printer
    - Dot Matrix
    - Laser
    --Laser1
    --Laser2
    Here if we want to check if the Grandparent of Laser1 is Printer, this cannot be done using the simple Validation, because through validation also we can at max find the parent of the current node i.e. we can traverse till Laser (for Laser 1 leaf node).
    Further we cannot use Laser as the node because in MDM we have to traverse completely through the last node and select it in Data Manager. So again we cannot search for Laser -> Parent.
    The Work Around that I have used is :
    I have created a new field and every time I import data I have mapped this field with the first Level Node and have put the Validation on this field.
    Eg: The field name is Root Node, so everytime the data is imported, Level 1 is mapped to Root Node and so all the Root node values are imported in the Root Node field that we have created and everytime the Validation Runs on this Root Node field and accordingly the process follows.
    Hope that would be helpful to you all!!!!
    Regards,
    Parul Malhotra

  • Renaming the Root node?

    Hi all,
    I have an XML document which has <rootNode> as the root node of the entire document. Is there a way of renaming this to e.g. <abc>, so this is the new root of the whole document?
    Or is XSLT the way to go?

    you can also do it via an XSLT sheet like this
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="OLD_root_name">
    <NEW_root_name>
    <xsl:copy-of select="./*"/>
    </NEW_root_name>
    </xsl:template>
    </xsl:stylesheet>

  • [JAXB] Multiple imports in the root node

    Hello,
    I use JAXB and am doing this scenario : unmarshalling an XML document created manually, and automatically marshalling another from the generated Java code.
    This is a multiple schemas / multiple imports issue.
    I would like the 2 XML documents to be similar, but in the first one, I get :
    <?xml version="1.0" encoding="UTF-8"?>
    <aaa:first xmlns:aaa="http://aaa" xmlns:bbb="http://bbb">
    </aaa>
    and in the second :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <aaa:first xmlns:aaa="http://aaa" xmlns:ns1="urn:abc" ...>
    <bbb:second xmlns:bbb="http://bbb">
    </bbb>
    </aaa>
    So, how is that possible to import multiple namespaces (xmlns) in a single node please ? It seems that JAXB does the import only when needed, and won't group all the imports in the root node.
    (moreover, how can I disable the "standalone" attribute in the header of the generated XML document please ?)
    Thanks in advance.

    Ok, I found a solution to get all namespaces placed in the root of the generated XML document : one have to implement a NamespacePrefixMapper
    marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper",new NamespacePrefixMapperImpl());and redefining its ' public String[] getPreDeclaredNamespaceUris()' method.
    For now, the problem is that namespaces declared there are somehow static. In fact, when unmarshalling Java objects from an XML document, it seems that this document namespaces are lost.
    Do you know a way these namespaces would be kept somewhere, associated with the unmarshalled object ? I need these namespaces in the case that I would create another XML file from it in the future.
    It's seems logical to keep this with the object, so did I miss something please ?

  • GRC 10 LDAP query issue at the root node

    Hello,
    We are unable to do a search based on root node after successful LDAP integration but if we add a particular OU within the base entry then we are able to search the users for that specific OU. Specifying a specific OU is not the right solution as we have different OU for North America, Europe,
    Latin America etc. regions. We need to specify the root node so that it will search for all the users in different region. We are getting the below operation failed error when we don't specify OU in the base entry.
    Operation failed
    Message no. LDAPRC001
    Diagnosis
    This is an error message that is triggered by the directory server.
    It is not possible to analyze the error in the SAP system.
    Procedure
    Check the log files for the directory server (if they exist), to see if they
    contain more information.
    Please let us know if you guys have faced this situation and what was the resolution.
    Thanks,
    Gautam.

    We just have one LDAP server/connector set-up and it is working fine if we specifiy OU within the base entry along with the domain but it doesn't work if we remove OU and leave the base entry with the root node/domain. I have checked with our Basis team and we have only one forest..going to check with our AD team for the same. Since specifying OU in the base entry is pulling result from Active directory within LDAP t-code in GRC 10 system, I believe everything is fine from LDAP configuration standpoint and also SPRO configuration in GRC 10 system will come into scope when we try to retrive/populate those field in ARQ/CUP configuration in NWBC.
    Below is the structure of our AD. If we leave the base entry with the root node/domain (DC=NR,DC=AD,DC=NEWELLCO,DC=COM) then it doesn't work and give the operation failed error message but if we add OU (OU=EMEA,DC=NR,DC=AD,DC=NEWELLCO,DC=COM) along with the root node then it does provide us with the result.
    I'm going to follow up with the AD team but let me know if anyone got any ideas to resolve the above error.
    Thanks,
    Gautam.

  • How do i get to display the nodes under the root node in a JTree?

    In my JTree there is a root node.This root node has 4 child nodes.Each child node in turn has nodes under it.What i need to do is just display the child nodes under the root node i.e., the four child nodes and keep these child nodes in a collapsed state.How do i go sbout this?

    Please try this:
    tree.expandRow(0);
    SwingUtilities.invokeLater(new Runnable(){
        public void run(){
            tree.setRootVisible(false);
    });If you want to show the RootHandles:
    tree.setShowsRootHandles(true);If you want to keep nodes in collapsed state (not expandable):
            tel = new TreeWillExpandListener() {
                public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException {
                    throw new ExpandVetoException( event, "Don't want" );
                public void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException {
            tree.addTreeWillExpandListener(tel);Some reading material:
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
    http://java.sun.com/docs/books/tutorial/uiswing/events/treewillexpandlistener.html
    Edited by: Andre_Uhres on Nov 14, 2007 5:17 PM
    Edited by: Andre_Uhres on Nov 14, 2007 5:33 PM
    Edited by: Andre_Uhres on Nov 14, 2007 5:39 PM

  • Issue on deployment: Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''

    Hi,
    I have the following issue when deploying:
    Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''
    The solution is a farm solution (was never sandbox) and it deploys fine.
    It was updated several times with success. We did not see this issue until recently when we had some other issue (unrelated) and looked at the logs. The solution is updated without problem and updates are available for the user. But we can see this error
    in the logs at the update time. 
    Any idea what might cause this?
    Pop Anisia

    Hi,
    This error is wide meaning, as it can come from differences between SP versions, variables types used, bad manifest file, WebConfiguration ...
    You can try to redeploy the solution.
    retracted the solution,removed all the previous ref, removed dll from GAC and folder from 14\features and reset the iis, deploying it again.
    Here are some similar issue post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/office/en-US/72ac9a02-3a51-48b8-9e36-3b24a2d4da74/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-alertbdcwsp?forum=sharepointgeneralprevious
    https://social.technet.microsoft.com/Forums/office/en-US/331af288-5ba6-48a7-9e9d-ac4e4bc8f8fa/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-xxxwsp-assembly-?forum=sharepointdevelopmentprevious
    In additional, you can check the ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS) to get the detailed information.
    I hope this helpful.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Ldif2db command fails to import data and deletes the root node

    ldif2db command fails to import data into LDAP.
    The command used was
    ldif2db -n userRoot -s "dc=example,dc=com" -i test.ldif
    The test.ldif conains the nodes under dc=example,dc-com
    eg: ou=test,dc=example,dc=com
    But on executing the command the root node "dc=example,dc=com" itself got deleted. The console output was like "Skipping entry uid=test001,ou=test,dc=example,dc=com" for all the entries present in ldif.
    What might be the reason for this ? Any clues ?
    The reason y i am trying to do this ldif2db is to preserve the createtimestamp and modifytimestamp while migrating data from one Directory Server to another. Any other ways of doing it ?

    ldif2db is the right command to migrate data and preserve those attributes like createtimestamp and modifytimestamp.
    However, when this command is used, it will first remove everthing before it load whatever you want. So you need to be very careful. I got this terrible problem as well.
    In my experience, if you use this command, don't use "-s". You can just use:
    ldif2db -n suffixName -i test.ldif
    If you only have one suffix (database), then you can use "-n userRoot".
    Also, if you migrate your data from server A to server B, you'd better dump the data using db2ldif -n userRoot -a test.ldif from server A. Then load it into server B using ldif2db -n userRoot -i test.ldif.

  • How i can insert icon only in the root node

    i need to insert icon only in the root node, with the other nodes i don't have problem.

    Use a jQuery menu like Superfish, or you can purchase an extension like the ones offered by Project VII
    http://plugins.jquery.com/superfish/
    http://www.projectseven.com/products/index.htm

  • Setting background color to just the root node in a tree

    How can I set a background color to just the root node in a tree? I got the node in the followig way in the renderer method.
    IconNodeClass parentIconNode = (IconNodeClass)((IconNodeClass)value).getRoot();
    Then how can I set the background for just the root node? Thanks.

    You need to write ur own treeCellRenderer for that to be done

  • Changing the color of the column in a JTable based on the selection (mouse)

    Hi,
    I want to change the color of all the cells in a column based on the mouse clicked event.
    I have managed to select the entire column. And, even, I have found a working example in the internet. But I don't understand why in my case it doesn't work.
    This is the code (an inner class for a TableCellRenderer):
    class MCTableCellRenderer extends JLabel implements TableCellRenderer {
              private static final long serialVersionUID = 1L;
              @Override
              public Component getTableCellRendererComponent(JTable table,
                        Object value, boolean isSelected, boolean hasFocus, int row,
                        int column) {
                   setFont(table.getFont());
                   if(value instanceof Double){
                        setHorizontalAlignment(SwingConstants.RIGHT);
                        DecimalFormat numberFormat = (DecimalFormat) NumberFormat.getInstance();
                        numberFormat.applyPattern("#######.#");
                        String val = numberFormat.format(value);
                        setText(val);
                   if(isSelected){
                        setBackground(Color.RED);
                        System.out.println("is selected");
                   else{
                        setBackground(Color.BLACK);
                        System.out.println("is not selected");
                   return this;
        }I have set opacity to true for the contentPane, but without any result.
    Any advice will be very apreciated.

    Problem solved.
    My Renderer should have extended the abstract class DefaultTableCellRenderer.
    class MCTableCellRenderer extends DefaultTableCellRenderer {

  • Process flow for the Mid-year Status Changes based upon the Qualifying Even

    Hi Experts,
    I'm looking some information for the process flow for the Mid-year Status Changes based upon the Qualifying Events. Basically, I need to know, what would be the impact of these changes on various info types (Via IT0014 - Deduction changes & so forth) and the things that needs to be considered during it's Configuration and the things that needs to be checked due to the occurrence of the change. I would greatly appreciate any kind of help/document.
    Thanks a bunch in advance,
    Thanks,
    Exertive.

    Hello guys,
    Can anyone has any kind of input on this? Basically, I need to know the procees for Mid-year status changes based upon Qualified events. Any kind of help is greatly appreciated.
    Thanks,
    Exertive.

  • Not overriding the coherence-cache-config.xml but showing the error...

    Hi,
    I have created a file called tangosol-coherence-override.xml file in the specified path which is " C:\Program Files\Oracle\Coherence for .NET"
    and the coherence.jar file is located in path which is "C:\Program Files\Oracle\Coherence for .NET\lib"
    but it is not overriding the xml file.. with the default file...
    C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java>"C:\Progra
    m Files\Java\jdk1.6.0_11\bin\java" -server -showversion -Xms128m -Xmx128m -Dtang
    osol.coherence.ttl=0 -Dtangosol.coherence.cacheconfig=contact-cache-config.xml -
    cp "config;lib\custom-types.jar;C:\Program Files\Oracle\Coherence for .NET\lib\c
    oherence.jar" com.tangosol.net.DefaultCacheServer
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
    2011-06-20 15:06:57.607/2.366 Oracle Coherence 3.7.0.0 <Info> (thread=main, memb
    er=n/a): Loaded operational configuration from "jar:file:/C:/Program%20Files/Ora
    cle/Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence.xml"
    2011-06-20 15:06:57.989/2.748 Oracle Coherence 3.7.0.0 <Info> (thread=main, memb
    er=n/a): Loaded operational overrides from "jar:file:/C:/Program%20Files/Oracle/
    Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2011-06-20 15:06:58.049/2.808 Oracle Coherence 3.7.0.0 <D5> (thread=main, member
    =n/a): Optional configuration override "/tangosol-coherence-override.xml" is not
    specified
    2011-06-20 15:06:58.062/2.821 Oracle Coherence 3.7.0.0 <D5> (thread=main, member
    =n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.0.0 Build 23397
    Grid Edition: Development mode
    Thanks in Advance

    The CLASSPATH is not the same as the PATH. It is similar but a classpath is a set of directories or jar files that Java uses to look for executable code and resources.
    Assuming you are using the example start-cache-server.cmd file that comes with the .Net examples to start your server you can put the tangosol-coherence-override.xml file into the C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java\config directory as this is on the classpath when using that script.
    JK

  • How to execute the query for a block based on the parameter

    Hi All,
    Good evening.
    i have requirement where i need to display the data in one block based on the selected items.
    the scenario is like this...there are 2 LOV's and one apply button and one external region on the form.
    so when u select the lov values and click on apply button the query should execute based on this 2 lov values.
    i am not getting how to achieve this..i am very new to oracle forms..
    Please Help..
    Thanks
    Bharat
    please help..it is urgent..
    thanks
    bharat
    Edited by: Bharat on Jan 31, 2012 5:19 AM

    Bharat wrote:
    Hi All,
    Good evening.
    i have requirement where i need to display the data in one block based on the selected items.
    the scenario is like this...there are 2 LOV's and one apply button and one external region on the form.
    so when u select the lov values and click on apply button the query should execute based on this 2 lov values.
    i am not getting how to achieve this..i am very new to oracle forms..Another way you can do this. Create a lov and don't assign it to any column just one return item (should be id).
    Now create a button may be your "apply button" write two trigger when-button-press and when-mouse-click.
    at When -Button-Press trigger, change the block state to 'ENTER-QUERY' and at when-mouse-click show the LOV and then write execute_query.
    Hope this will help you.
    If someone's response is helpful or correct, please mark it accordingly.

  • Unable to see the root node in the import manager

    Hi All,
    I want to load an xml file based on the schema .
    I am unable to see the node <Record> containing the records in the import manager.
    What I am seeing now in import manager Source Hierarchy is
    > None
    >ns1:MT_MDM_003_Shipping
    What I am supposed to see
    > None
    >ns1:MT_MDM_003_Shipping
    >Record
    Could anyone  let me know if the structure of xml or schema is wrong below.
    XML File:
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:MT_MDM_003_Shipping xmlns:ns1="urn:Test-com:Customer_Master" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:Test-com:Customer_Master J:\Data\MDM\CUSTOM1\IMPORT2\MT_MDM_003_Shipping.xsd">
         <Record>
              <Sales_Organization>1001</Sales_Organization>
              <Distribution_Channel>00</Distribution_Channel>
              <Division>00</Division>
              <Customer_Nr>00114</Customer_Nr>
              <Order_Combination>Y</Order_Combination>
              <Complete_delivery_reqd_by_law/>
              <Max_partial_deliveries/>
              <Delivery_Priority/>
              <Shipping_Conditions/>
              <Delivering_Plant/>
              <Partial_delivery_per_item/>
         </Record>
         </ns1:MT_MDM_003_Shipping>
    XSD File:
      <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema targetNamespace="urn:Test-com:Customer_Master" xmlns="urn:Test-com:Customer_Master" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:element name="MT_MDM_003_Shipping" type="DT_MDM_003_Shipping" />
    <xsd:complexType name="DT_MDM_003_Shipping">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">3c427550330e11dda6b400112539c3ab</xsd:appinfo>
      </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="Record" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd01c4f11dd8b8b02004c4f4f50</xsd:appinfo>
      </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Sales_Organization" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd11c4f11ddb25802004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Distribution_Channel" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd21c4f11dd800802004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Division" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd31c4f11dd99b802004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Customer_Nr" type="xsd:string">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd41c4f11ddb93902004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Order_Combination" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd51c4f11dd871702004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Complete_delivery_reqd_by_law" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd61c4f11dda64f02004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Max_partial_deliveries" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd71c4f11dd832102004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Delivery_Priority" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd81c4f11dda0e902004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Shipping_Conditions" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfd91c4f11ddb21602004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Delivering_Plant" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfda1c4f11dd9e5402004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Partial_delivery_per_item" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">414ccfdb1c4f11ddaf1202004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>

    Hi Aravind,
    Try importing two records i.e. your XML file should consists of two record nodes
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:MT_MDM_003_Shipping xmlns:ns1="urn:Test-com:Customer_Master" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:Test-com:Customer_Master J:\Data\MDM\CUSTOM1\IMPORT2\MT_MDM_003_Shipping.xsd">
    <Record>
    <Sales_Organization>1001</Sales_Organization>
    <Distribution_Channel>00</Distribution_Channel>
    <Division>00</Division>
    <Customer_Nr>00114</Customer_Nr>
    <Order_Combination>Y</Order_Combination>
    <Complete_delivery_reqd_by_law/>
    <Max_partial_deliveries/>
    <Delivery_Priority/>
    <Shipping_Conditions/>
    <Delivering_Plant/>
    <Partial_delivery_per_item/>
    </Record>
    <Record>
    <Sales_Organization>1001</Sales_Organization>
    <Distribution_Channel>00</Distribution_Channel>
    <Division>00</Division>
    <Customer_Nr>00114</Customer_Nr>
    <Order_Combination>Y</Order_Combination>
    <Complete_delivery_reqd_by_law/>
    <Max_partial_deliveries/>
    <Delivery_Priority/>
    <Shipping_Conditions/>
    <Delivering_Plant/>
    <Partial_delivery_per_item/>
    </Record>
    </ns1:MT_MDM_003_Shipping>
    Please change the data of second record accordingly. I also faced the same problem and some how manage to get this solution. Lets see whether it is working in your case.
    Regards,
    Jitesh Talreja

Maybe you are looking for