Discussion Locked

XML QUESTION

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My friend is looking for how to do something in XML - here's what he wrote......
he knows XML fairly well - but can't figure out for the life of him how to get it to ALPHABITZE the stuff...
There are lots of tutorials and stuff that assume he knows too much already apparently....
Please write a complete script that will pull the data from the following XML database and list the names in alphabetical order and display it on a webpage

Ed

Jeremy

Frank

2 replies

by pryzhkov

You should use element within or element to reorganize existing XML file for future processing. The stylesheet should include something like:

...

...

by chellaganesh

Here is an easy example for you:

-------------------------- XML

Cars
Ed

Bikes
Jeremy

Trucks
Frank

save this as cdcatalog.xml
-------------------------------------

My CD Collection

Title Artist

save this as Xsl cdcatalog.xsl
-------------------------------------

save this as master.html and open this in browser
You will get the list sorted on title

This discussion is closed to new replies.