General discussion

  • Creator
    Topic
  • #2175359

    XML QUESTION

    Locked

    by elrey103 ·

    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

All Comments

  • Author
    Replies
    • #3247840

      Reply To: XML QUESTION

      by pryzhkov ·

      In reply to XML QUESTION

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






    • #3127621

      Reply To: XML QUESTION

      by chellaganesh ·

      In reply to XML QUESTION

      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

Viewing 1 reply thread