2 Structures
The Query Definition File Format Structure consists of a root XML element (section 2.1) containing a base64-encoded binary stream. The binary stream (section 2.2) consists of four variable-length fields, namely:
Package Parts (section 2.3)
Permissions (section 2.4)
Metadata (section 2.5)
Permission Bindings (section 2.6)
Each field is preceded by a 4-byte integer field that specifies its length.