3.1.2.2.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. UTF8 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 MUST use the namespace prefix "g", with "xmlns" attribute defining "g" as "urn:groove.net".

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

  • The third level "g:SE" element and its sub-elements MUST use the namespace prefix "g" without any "xmlns" attribute.