469,289 Members | 2,251 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

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 973
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

Post your reply

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

Similar topics

5 posts views Thread by hharry | last post: by
24 posts views Thread by Lasse Vågsæther Karlsen | last post: by
1 post views Thread by Ryan | last post: by
12 posts views Thread by google_groups3 | last post: by
3 posts views Thread by Sanjib Biswas | last post: by
2 posts views Thread by Bruce Stradling | last post: by
3 posts views Thread by Ralph Smith | last post: by
14 posts views Thread by etal | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.