Hi,I'm newbie here.I face some problem about my project.Hope that you all who know it can help me.
I want to sort the list of the nodes that depand on which element nodes that user wish to sort.
For example:Below is my XML data
-->I already complete the retrive XML data function,and my data output is show as table form.It work.
-->And now i want to add the sort function to sort my XML data.But i don't know how to started.
-->If user want to sort the company_name element,then after clicking the sort command button only the whole company_name element table column will be sort at that column. In the other way,if user want to sort the user_name element,then after clicking the sort command button only the whole user_name element table column will be sort at that column.
-->Can you provide me some source code about this that can show the sample sorting by using the above XML example??
Thanks in advance.
I want to sort the list of the nodes that depand on which element nodes that user wish to sort.
For example:Below is my XML data
HTML:
<RegistrationRecord>
<tblRegistration>
<company_name>ABC Sdn Bhd</company_name>
<non_expiry>Evalution</non_expiry>
<expiry_date>23-Jun-2006</expiry_date>
<admin_module>Process Manager</admin_module>
<scan_module>Workgroup</scan_module>
<web_module>Process Manager (Content Search)</web_module>
<date_created>18-Jun-2006</date_created>
<user_name>Manager</user_name>
</tblRegistration>
<tblRegistration>
<company_name>XYZ Sdn Bhd</company_name>
<non_expiry>Permenent</non_expiry>
<expiry_date></expiry_date>
<admin_module>Basic</admin_module>
<scan_module>Non-Scan</scan_module>
<web_module>Version Control (Content Search)</web_module>
<date_created>27-Apr-2006</date_created>
<user_name>SysAdmin</user_name>
</tblRegistration>
</RegistrationRecord>
-->And now i want to add the sort function to sort my XML data.But i don't know how to started.
-->If user want to sort the company_name element,then after clicking the sort command button only the whole company_name element table column will be sort at that column. In the other way,if user want to sort the user_name element,then after clicking the sort command button only the whole user_name element table column will be sort at that column.
-->Can you provide me some source code about this that can show the sample sorting by using the above XML example??
Thanks in advance.
Last edited by a moderator: