• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting xml string

 
Palani Kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to sort the xml string.. Please help me... Here is the code... I want to sort the xml string based on num tag...
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's Javascript code, isn't it? So your question is how to sort the nodes in Javascript. So let's move this to the forum which is about Javascript.
 
Palani Kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No here we have to use XSLT . So please move it to xml .
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here we have to use XSLT

Why? Is the objective to sort the XML data, or to do so using a particular technique?
 
Palani Kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use any technology. But actually original xml string is too big. So I cant use array concept here. So I thought its better to use XSLT. Any of your suggestion is welcome.
 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whats the task.
I mean if you want to do so you by two ways:

If you are getting the xml from some query you can get it ordered by already from there.
Second thing is if you want to display that data sorted by num in table you can use jGrid by jQuery.

But still if you want to sort it in javascript it can be done but would be more complex.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic