3.1.5.2 Serialize Header Element

Header element MUST be serialized into a byte representation. As part of the serialization, all attributes for each element MUST be sorted alphabetically, with no compression and no extra white spaces. UTF-8 encoding MUST be used. In addition, the following rules MUST be followed to ensure successful security processing:

  • The following MUST be present at the beginning of the serialized data:

        <?xml version='1.0'?><?groove.net version='1.0'?>
    
  • The top level fragment element (in the namespace "urn:groove.net") MUST use the namespace prefix "g", with "xmlns" attribute defining "g" as "urn:groove.net".

  • The second level PayloadWrapper element MUST NOT have any namespace prefix.

  • The third level SE element (in the namespace "urn:groove.net") and its sub-elements (all in the namespace "urn:groove.net") MUST use the namespace prefix "g" without any "xmlns" attribute.