I have this xml-file. I want to sort it, and create a new xml-file. The
result should be identical to the input except that it's sorted.
<?xml version="1.0" encoding="UTF-8"?>
<levelone>
<child ID="1" sort="5"><name> Paul</name></child>
<child ID="2" sort="1"><name> Adam</name></child>
<child ID="3" sort="2"><name> Will</name></child>
<root>
I now want to apply an xslt file and have the following output:
<?xml version="1.0" encoding="UTF-8"?>
<levelone>
<child ID="2" sort="1"><name> Adam</name></child>
<child ID="3" sort="2"><name> Will</name></child>
<child ID="1" sort="5"><name> Paul</name></child>
<root>
I've been searching for hours, but all the examples I have seen creates an
HTML file.
tia
/jim
result should be identical to the input except that it's sorted.
<?xml version="1.0" encoding="UTF-8"?>
<levelone>
<child ID="1" sort="5"><name> Paul</name></child>
<child ID="2" sort="1"><name> Adam</name></child>
<child ID="3" sort="2"><name> Will</name></child>
<root>
I now want to apply an xslt file and have the following output:
<?xml version="1.0" encoding="UTF-8"?>
<levelone>
<child ID="2" sort="1"><name> Adam</name></child>
<child ID="3" sort="2"><name> Will</name></child>
<child ID="1" sort="5"><name> Paul</name></child>
<root>
I've been searching for hours, but all the examples I have seen creates an
HTML file.
tia
/jim
Comment