473,473 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sorting xmldocument

Hi
Here my xml document and display format.

Issue :
We are displaying the data in the following format we are using c# and asp.net.

In header each column have link.If we click on column need to sort the xmldocumet and display the data in sorted order.
If anybody have clue pls help me and is very urgent.

Let assume Empno is numeric.
firstname and lastname is string.
joindate is date.
<Persons>
<Person>
<EmpNo>10</EmpNo>
<FirstName>Rober</FirstName>
<LastName>Ellan</LastName>
<JoinDate>10/10/2004</JoinDate>
</Person>
<Person>
<EmpNo>9</EmpNo>
<FirstName>Alln</FirstName>
<LastName>Kelli</LastName>
<JoinDate>10/10/2003</JoinDate>
</Person>
<Person>
<EmpNo>19</EmpNo>
<FirstName>Moliki</FirstName>
<LastName>Pikki</LastName>
<JoinDate>9/9/2000</JoinDate>
</Person>
<Person>
<EmpNo>31</EmpNo>
<FirstName>bekky</FirstName>
<LastName>sony</LastName>
<JoinDate>10/10/2004</JoinDate>
</Person>
</Persons>
__________________________________________________ ______________________
EmpNo FirstName LastName JoinDate
-------- ------------ ------------ ------------
__________________________________________________ ______________________10 Rober Ellan 10/10/2004
9 Alln Kelli 10/10/2003
19 Moliki Pikki 9/9/2000
31 bekky sony 10/10/2004

Ex: If we click on EmpNo column,Data should be sorted as follows.
__________________________________________________ ______________________
EmpNo FirstName LastName JoinDate
-------- ------------ ------------ ------------
9 Alln Kelli 10/10/2003
10 Rober Ellan 10/10/2004
19 Moliki Pikki 9/9/2000
31 bekky sony 10/10/2004
Thanks
Ravi

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 16 '05 #1
0 1063

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tim | last post by:
I've been working on this for over a week now, and just can't get this figured out. Hoping one of you gurus can help me out here. I have an xml data island that I'm representing on an htm page as...
0
by: reclusive monkey | last post by:
I copied the following example from MSDN, and it works nicely. However, I want to combine it with another technique I discovered on the IBM Developer site. However, the first method relies upon...
1
by: Martin Honnen | last post by:
With both .NET 1.0 and 1.1 I have found the following strange behaviour where System.Xml.XmlDocument.LoadXml doesn't throw an error when parsing a text node with a character reference to an invalid...
2
by: Graham Pengelly | last post by:
Hi I am trying to transform on System.Xml.XmlDocument into another using XslTransform without writing the object out to a file. I am guessing it should work something like this... public...
8
by: Siu | last post by:
Hi, is it possible to sort a XML file without using a XSLT or XSL file?? For example, my XML is: <A> <1> <3> <4> <2> </A>
8
by: pete | last post by:
Hi there, Can someone explain to me why I can't bind to an XmlDocument but I can bind to an XmlNodeList. It's my understanding that they both implement the IEnumerable interface which is...
4
by: moital | last post by:
i am looking for a c# way to sort an xmlDocument notes the input of the function is a xml as string, and a path of the to be sorted nodes and the attribute to sort by as any one implement...
1
by: xrow | last post by:
Hello I have a simple webservice / c# application that receives data from server and prints the data in the asp:datagrid control I have problem when sorting data in datagrid I have created...
2
by: Alan Searle | last post by:
I would like to use an XSL/HTML template to sort XML data dynamically on the client side. As it is, I found a tutorial showing how to do this on the following site ... ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.