Allow diameter message & avp to normalize their xml representation
authorEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Sat, 2 May 2020 19:39:53 +0000 (21:39 +0200)
committerEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Sat, 2 May 2020 19:43:30 +0000 (21:43 +0200)
commit227446df961ead723c8f2b04ea53d99c770a438f
tree967c5f1284090c6e858a06f3fa6b128ca7b091fa
parent1fd0c19880f48fd5d98dfce81dfed21147b4dfe3
Allow diameter message & avp to normalize their xml representation

The method `asXMLString` for Message and Avp classes has now an
optional bool "sortAttributes" which defaults to `false` (previous
behaviour).

So, you could normalize by mean sorting attribute names for nodes
within xml. This does not affect to the structure because the
method asXMLString just generates the representations on-demand.

The new parameter is set to true when programming regexps and during
TestCondition comply for diameter messages received.
include/anna/diameter/codec/Avp.hpp
include/anna/diameter/codec/Message.hpp
source/diameter/codec/Avp.cpp
source/diameter/codec/Message.cpp