Added option to allow the xml serializer to use a json object to dictate the sequence of xml elements

The serializer doesn't currently allow the order of xml elements to be specified when converting a json object to xml. This request contains the necessary code to allow the serializer to use a json object to specify the sequence in which the xml elements are output.