The root node of Silk Performer XML representation of binary AMF is called AmfXml. Its only attribute is the version attribute, which corresponds to the version field in binary AMF and denotes the AMF protocol specification version. Its value is always zero (0).
AMF packets consist of a list of context headers and a list of messages. Any of these lists may contain zero elements.
The basic structure of an AMF packet in XML is shown below:
<?xml version='1.0' encoding='UTF-8'?> <AmfXml version=\"0\"> <CtxHeader length="112" mustUnderstand="true" name="some_name"> (contents of context header) </CtxHeader> (more context headers) <Msg length="5" operation="some.operation" responseURI="/1"> (contents of message) </Msg> (more messages) </AmfXml>