Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Sort XML Elements?

Sort XML Elements?

Scheduled Pinned Locked Moved XML / XSL
xmlquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Robert M Greene
    wrote on last edited by
    #1

    Is there an easy way to transform an xml document to another xml document with all the elements sorted? ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum -- modified at 23:38 Thursday 1st December, 2005

    S 1 Reply Last reply
    0
    • R Robert M Greene

      Is there an easy way to transform an xml document to another xml document with all the elements sorted? ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum -- modified at 23:38 Thursday 1st December, 2005

      S Offline
      S Offline
      Sushant_Mathur
      wrote on last edited by
      #2

      The xsl:sort element is used to define a sort key. This sort key determines the order in which selected nodes are processed by the xsl:for-each or xsl:apply-templates elements. Syntax: Sushant Mathur Ocwen Financial Sol. Pvt. Ltd, Bangalore, INDIA.

      R 1 Reply Last reply
      0
      • S Sushant_Mathur

        The xsl:sort element is used to define a sort key. This sort key determines the order in which selected nodes are processed by the xsl:for-each or xsl:apply-templates elements. Syntax: Sushant Mathur Ocwen Financial Sol. Pvt. Ltd, Bangalore, INDIA.

        R Offline
        R Offline
        Robert M Greene
        wrote on last edited by
        #3

        I understand that I can use xsl to sort the individual elements if I wanted to create the xsl template by hand. I want to take an XML file, perform sorting on it, and export the sorted contents. ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum

        S 1 Reply Last reply
        0
        • R Robert M Greene

          I understand that I can use xsl to sort the individual elements if I wanted to create the xsl template by hand. I want to take an XML file, perform sorting on it, and export the sorted contents. ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum

          S Offline
          S Offline
          sreejith ss nair
          wrote on last edited by
          #4

          It could be much more easy if you go ahead with XSL sort .

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups