X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2FMessage.hpp;h=3a583ce8603f5f904c2b5389db44327ab6027858;hp=41ebe0a80acdec66bd48a9a0929b1631df33ddbb;hb=227446df961ead723c8f2b04ea53d99c770a438f;hpb=1fd0c19880f48fd5d98dfce81dfed21147b4dfe3 diff --git a/include/anna/diameter/codec/Message.hpp b/include/anna/diameter/codec/Message.hpp index 41ebe0a..3a583ce 100644 --- a/include/anna/diameter/codec/Message.hpp +++ b/include/anna/diameter/codec/Message.hpp @@ -715,9 +715,11 @@ public: /** Class xml string representation + @param sortAttributes Optional normalization used to match xml representation with regexps + \return XML string representation with relevant information for this instance. */ - std::string asXMLString() const throw(); + std::string asXMLString(bool sortAttributes = false) const throw(); /** Comparison operator by mean serialization @@ -786,8 +788,8 @@ public: Example 1: std::string pattern = "\n"; - pattern += ANNA_XML_COMPILER_TAB; pattern += "\n" - pattern += ANNA_XML_COMPILER_TAB; pattern += "" + pattern += std::string(ANNA_XML_INDENTATION_SPACES, ' '); pattern += "\n" + pattern += std::string(ANNA_XML_INDENTATION_SPACES, ' '); pattern += "" Example 2: std::string pattern = "name=\"Subscription-Id\"(.)*name=\"Subscription-Id-Type\" data=\"0\"(.)*name=\"Subscription-Id-Data\" data=\"616[0-9]{6,6}\"";