473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Merging Duplicates

hi ,,

i have an issue here and i want somebody to help me .....



i'm using xml and xsl transfrorm ....

now i have this xml ..



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

+ <SchemaDocuments>

+ <UseCase>

<Name>Games</Name>

+ <SchemaDefinition id="5">

<name>demo</name>

+ <Folder id="1">

<folderName>Admin</folderName>

</Folder>

</SchemaDefinition >

</UseCase>

+ <UseCase>

<Name>Software</Name>

+ <SchemaDefinition id="1">

<name>Descraption</name>

+ <Folder id="1">

<folderName>Options</folderName>

</Folder>

</SchemaDefinition >

+ <UseCase>

<Name>Movies</Name>

+ <SchemaDefinition id="3">
<name>Deep blue </name>

+ <Folder id="3">

<folderName>Admin</folderName>

</Folder>

----------- :



and now i want :

- if the <foldername> is same i mean duplicate like this exp (Admin) ..

make only one <foldername> and keep all (Name) that relate to that folder in it



the output that i want must be via XSl :



Admin

Games

Movies



Option

Software



Thanks
Jul 2 '07 #1
1 1030
Dököll
2,364 Expert 2GB
hi ,,

i have an issue here and i want somebody to help me .....



i'm using xml and xsl transfrorm ....

now i have this xml ..

Expand|Select|Wrap|Line Numbers
  1.  
  2. <?xml version="1.0" encoding="utf-8"?>
  3.  
  4. + <SchemaDocuments>
  5.  
  6.   + <UseCase>
  7.  
  8.      <Name>Games</Name>
  9.  
  10.      + <SchemaDefinition id="5">
  11.  
  12.         <name>demo</name>
  13.  
  14.          + <Folder id="1">
  15.  
  16.           <folderName>Admin</folderName>
  17.  
  18.           </Folder>
  19.  
  20. </SchemaDefinition >
  21.  
  22. </UseCase>
  23.  
  24. + <UseCase>
  25.  
  26.      <Name>Software</Name>
  27.  
  28.      + <SchemaDefinition id="1">
  29.  
  30.         <name>Descraption</name>
  31.  
  32.                + <Folder id="1">
  33.  
  34.           <folderName>Options</folderName>
  35.  
  36.           </Folder>
  37.  
  38. </SchemaDefinition >
  39.  
  40. + <UseCase>
  41.  
  42.     <Name>Movies</Name>
  43.  
  44.    + <SchemaDefinition id="3">
  45.         <name>Deep blue </name>
  46.  
  47.                + <Folder id="3">
  48.  
  49.           <folderName>Admin</folderName>
  50.  
  51.           </Folder>
  52.  
----------- :



and now i want :

- if the <foldername> is same i mean duplicate like this exp (Admin) ..

make only one <foldername> and keep all (Name) that relate to that folder in it



the output that i want must be via XSl :



Admin

Games

Movies



Option

Software



Thanks
Have a look here, roma2008:

http://www.thescripts.com/forum/thread662186.html
Jul 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: hharry | last post by:
Hello All, I have an issue with dupliate Contact data. Here it is: I have a Contacts table; CREATE TABLE CONTACTS ( SSN int, fname varchar(40),
24
by: Lasse Vågsæther Karlsen | last post by:
I need to merge several sources of values into one stream of values. All of the sources are sorted already and I need to retrieve the values from them all in sorted order. In other words: s1 = ...
1
by: Ryan | last post by:
I was easily able to merge 2 XML files using the guide at http://support.microsoft.com/kb/311530/EN-US/. However, the two XML files may contain duplicate tags. Is there an easy way to merge so that...
12
by: google_groups3 | last post by:
Hi all. I currently have 2 text files which contain lists of file names. These text files are updated by my code. What I want to do is be able to merge these text files discarding the...
3
by: Sanjib Biswas | last post by:
Hi All, I am looking for XML merging for the following scenarios. I want to load both the input files and show in the tree viewer and highlight the differences. Now its up to the user to select...
2
by: Bruce Stradling | last post by:
I would like to have two tables. One I call SystemPropertyTypeTable which contains the defaults and the other UserPropertyTypeTable. Each has 3 fields. PropertyType, Description, Status. The...
3
by: Ralph Smith | last post by:
I have two identical databases on two different servers and I need to add the data in tables from one server to the tables in the other server. Is there a way to do that in mysql? thanks, Ralph
11
by: holla | last post by:
Write the following functions that can be called by a C program: Write a function to populate an array with random integers between 0 and 99. Use the following functions of which the prototypes...
1
by: tillmanj | last post by:
I am attempting to clean up some data for migration to a new system, and I am stuck on dealing with duplicated user records. The following fields in tblUser are germane to the problem: UserID:...
14
by: etal | last post by:
Here's an algorithm question: How should I efficiently merge a collection of mostly similar lists, with different lengths and arbitrary contents, while eliminating duplicates and preserving order...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.