Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 26th, 2004, 05:26 AM
forashok forashok is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 3 forashok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Data Mapping (xml-to-xml) using with Mapforce

I am using MapForce data mapping tool.

i have below XML data as Source which is having duplicate elements like code, name:

<?xml version="1.0" encoding="UTF-8"?>

<CustomerDetails xmlns="http://www.tdxgroup.com/namespace"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.tdxgroup.com/namespace:\TDX\mapforce\example2\Customer1.xsd">



<Customer>

<Code>C001</Code>

<Name>Cust1</Name>

<Phone>88888888</Phone>

</Customer>



<Customer>

<Code>C001</Code>

<Name>Cus1</Name>

<Phone>77777777</Phone>

</Customer>



<Customer>

<Code>C001</Code>

<Name>Cust1</Name>

<Phone>66666666</Phone>

</Customer>



<Customer>

<Code>C002</Code>

<Name>Cust2</Name>

<Phone>55555555</Phone>

</Customer>


<Customer>

<Code>C003</Code>

<Name>Cust3</Name>
<Phone>55555555</Phone>
</Customer>

</CustomerDetails>

This dupication need to be remove from source to target xml as given below Target xml data:

<CustomerDetails xmlns="http://tdxgroup.com/namespace"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://tdxgroup.com/namespace:\TDX\mapforce\example2\Customer2.xsd">



<Customer>

<Code>C001</Code>

<Name>Cust1</Name>

<Phones>
<Phone>88888888</Phone>

<Phone>77777777</Phone>

<Phone>66666666</Phone>

</Phones>

</Customer>

<Customer>
<Code>C002</Code>

<Name>Cust2</Name>
<Phones>
<Phone>11111111</Phone>
</Phones>

</Customer>

</CustomerDetails>

Is this possible through MapForce tool, if yes then please provide solution on this problem.

For your reference please find the attachment.


Thanks in adavance.



Regards

AK
Attached Files
File Type: zip test.zip (2.6 KB, 222 views)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Data Mapping (xml-to-xml) using with Mapforce


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT