Click here to Skip to main content
15,894,362 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionRe: XML Explanation Pin
led mike11-Dec-08 5:52
led mike11-Dec-08 5:52 
AnswerRe: XML Explanation Pin
Vimalsoft(Pty) Ltd11-Dec-08 18:56
professionalVimalsoft(Pty) Ltd11-Dec-08 18:56 
Questionxsd restriction Pin
User 5838528-Dec-08 15:44
User 5838528-Dec-08 15:44 
QuestionNeed help.. Pin
raveen8-Dec-08 7:28
raveen8-Dec-08 7:28 
QuestionRe: Need help.. Pin
led mike8-Dec-08 7:40
led mike8-Dec-08 7:40 
QuestionShowing Image Pin
amit sahu207-Dec-08 19:58
amit sahu207-Dec-08 19:58 
AnswerRe: Showing Image Pin
Christian Graus11-Dec-08 14:46
protectorChristian Graus11-Dec-08 14:46 
QuestionProblem: How to sort a XML file into another XML File ? Pin
zouzoulikou4-Dec-08 7:03
zouzoulikou4-Dec-08 7:03 
Hello.
I've a problem to sort a XML file into another xml file.

Here's the content of my XML File:

File: Drive.xml
<code>

<drive name="C" type="Local Disk" filesystem="NTFS" capacitygb="232" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<folder name="Depends" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Depends" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="Profile.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Depends/Profile.xml" type="File" typefile="XML" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Identity.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Depends/Identity.xml" type="File" typefile="XML" sizebytes="1284" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</folder>
<file name="Meteo.pdf" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Meteo.pdf" type="File" typefile="PDF" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Documents and Settings" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Documents and Settings" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="etc" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/etc" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Program Files" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Program Files" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="Identity.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Program Files/Identity.xml" type="File" typefile="XML" sizebytes="1284" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</folder>
<folder name="Zouzou" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="Profile.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou/Profile.xml" type="File" typefile="XML" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Identity.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou/Identity.xml" type="File" typefile="XML" sizebytes="1284" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Report.doc" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou/Report.doc" type="File" typefile="DOC" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</folder>
<folder name="Windows" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Windows" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="LastCoroner.avi" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/LastCoroner.avi" type="File" typefile="AVI" sizebytes="1231254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Inetpub" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Inetpub" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</drive>
</code>




I want to sort it to have the following file : SortedDrive.xml which is sort first by the <file> and after by the <folder>


<code>

<drive name="C" type="Local Disk" filesystem="NTFS" capacitygb="232" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="LastCoroner.avi" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/LastCoroner.avi" type="File" typefile="AVI" sizebytes="1231254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Meteo.pdf" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Meteo.pdf" type="File" typefile="PDF" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Depends" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Depends" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="Profile.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Depends/Profile.xml" type="File" typefile="XML" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Identity.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Depends/Identity.xml" type="File" typefile="XML" sizebytes="1284" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</folder>
<folder name="Documents and Settings" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Documents and Settings" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="etc" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/etc" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Inetpub" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Inetpub" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Program Files" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Program Files" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="Identity.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Program Files/Identity.xml" type="File" typefile="XML" sizebytes="1284" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</folder>
<folder name="Windows" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Windows" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<folder name="Zouzou" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou" type="Folder" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}">
<file name="Profile.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou/Profile.xml" type="File" typefile="XML" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Identity.xml" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou/Identity.xml" type="File" typefile="XML" sizebytes="1284" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
<file name="Report.doc" key="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}/Zouzou/Report.doc" type="File" typefile="DOC" sizebytes="1254" description="" repositoryid="{A9545674-FD69-4AFE-ACEC-D53767EC22B8}" />
</folder>
</drive>
</code>



How can I do that ?


Thank you very much
QuestionRe: Problem: How to sort a XML file into another XML File ? Pin
led mike4-Dec-08 7:37
led mike4-Dec-08 7:37 
AnswerRe: Problem: How to sort a XML file into another XML File ? Pin
TJS4u4-Dec-08 23:05
TJS4u4-Dec-08 23:05 
Question[Message Deleted] Pin
zouzoulikou4-Dec-08 6:49
zouzoulikou4-Dec-08 6:49 
AnswerRe: How to sort a XML file into another XML File Pin
zouzoulikou4-Dec-08 6:53
zouzoulikou4-Dec-08 6:53 
QuestionXSD Conditional Elements Pin
Skippums3-Dec-08 7:24
Skippums3-Dec-08 7:24 
QuestionI want to use search of a website through my application Pin
IrfanHaleem2-Dec-08 7:15
IrfanHaleem2-Dec-08 7:15 
AnswerCross Post Pin
led mike3-Dec-08 8:00
led mike3-Dec-08 8:00 
QuestionJavascript in xsl Pin
Ashvish2-Dec-08 0:47
Ashvish2-Dec-08 0:47 
QuestionRe: Javascript in xsl Pin
led mike2-Dec-08 5:20
led mike2-Dec-08 5:20 
AnswerRe: Javascript in xsl Pin
Ashvish3-Dec-08 19:36
Ashvish3-Dec-08 19:36 
GeneralRe: Javascript in xsl Pin
led mike4-Dec-08 5:24
led mike4-Dec-08 5:24 
QuestionWould this allow Employee and Member both? Pin
paresh_joe1-Dec-08 22:27
paresh_joe1-Dec-08 22:27 
GeneralRe: Would this allow Employee and Member both? Pin
led mike2-Dec-08 4:35
led mike2-Dec-08 4:35 
QuestionProblem with xml data Pin
snehasish29-Nov-08 0:29
snehasish29-Nov-08 0:29 
AnswerRe: Problem with xml data Pin
led mike1-Dec-08 5:07
led mike1-Dec-08 5:07 
GeneralRe: Problem with xml data Pin
snehasish1-Dec-08 21:42
snehasish1-Dec-08 21:42 
AnswerRe: Problem with xml data Pin
Steve Westbrook1-Dec-08 5:43
Steve Westbrook1-Dec-08 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.