XMl Node Sorting Based on Length
-
Hi all I have one problem in C# that is related to XMl Sorting...That is Based On the text Length Languuage:C# <person> <fname>Joe</fname> <fname>Prabhakar</fname> <fname>ABBBBBBBBCCCCCCCCCC</fname> </person> I want this XML as <person> <fname>ABBBBBBBBCCCCCCCCCC</fname> <fname>Prabhakar</fname> <fname>Joe;lt;/fname> </person> see the sorting is not based on Accending or decending order it's based on the length of the text Hope this question is Clear to you Thanks
prabhakar dwivedi
-
Hi all I have one problem in C# that is related to XMl Sorting...That is Based On the text Length Languuage:C# <person> <fname>Joe</fname> <fname>Prabhakar</fname> <fname>ABBBBBBBBCCCCCCCCCC</fname> </person> I want this XML as <person> <fname>ABBBBBBBBCCCCCCCCCC</fname> <fname>Prabhakar</fname> <fname>Joe;lt;/fname> </person> see the sorting is not based on Accending or decending order it's based on the length of the text Hope this question is Clear to you Thanks
prabhakar dwivedi
-
that's a pretty straightforward problem with an equally straightforward solution: 1. read the XML doc 2. remove the nodes 3. sort the nodes 4. add the nodes back to the doc 5. save the doc I'd recommend an XmlDocument[^] for this.
Thanks to you .. i Know this but i am looking for any in build function provided by .Net for sorting XML doc Thanks
prabhakar dwivedi