is a pretty clean way to do it.
On the server side, you would do pretty much the same thing, except that once you had a randomized 1st, then you would create an XML file from the randomized array.
In any case, the first thing you would do is to figure out how to get the stuff that needs to be sorted out of the XML. This is called XML parsing, and you can write your own, are probably find a library somewhere that will do it for you. Once you are able to extract the objects to shuffle, then you randomize their order. Once you are able to do that, then you need to figure out some way to put it into a readable order.
This is a multi-step process that you want to create and not something that you are going to do in 5 lines of code. Maybe 150. Maybe more, maybe less. There should be tons of available examples to help you handle each part.
Gotta go now; I have a bug I process that I have been trying to figure out for the last three days.