User`s manual

11. Appendix A - Hydra Open Protocol
Barco – iStudio – R5976569 – user's manual – revision 09 – March-2007
____________________________________________________________________________________
11-3
Some examples:
<TAG1>&#60;test&#62;</TAG1>
<TAG2>12345</TAG2>
<TAG3 NAME="tag3">A&#38;B</TAG3>
<TAG4><A></A><B></B></TAG4>
The content of TAG1 is <test>, of TAG2 is 12345 and of TAG3 is A&B. TAG4 contains the tags A and B. To
conclude this brief XML description, here is a final example:
<XML>
<MESSAGE TO="hydra" FROM="me">
<TITLE>Open Protocol Example</TITLE>
<BODY STYLE="plain">&#34;Test&#34;</BODY>
<TIME>15:05:30</TIME>
<DATE>19/06/2001</DATE>
</MESSAGE>
<TEST><TEST2><TEST3>abcde</TEST3><TEST2></TEST>
</XML>
11.1.2 Packets
A packet is the structure used to exchange information with the HYDRA. All packets have the following basic struc-
ture:
<XML>
<PACKET MODULE="HYDRA" VERSION="1.0">
...
</PACKET>
</XML>
Between the XML tags, there is a PACKET tag with two attributes: MODULE contains the destination of the
packet (HYDRA) and VERSION the version of the packet (describing the meaning of the contents). A major revi-
sion of the protocol may define packets with version 2.0 or higher, while a minor revision may have packets with
version 1.1. Of course version 1.0 packets will still be supported, unless it is specified they are not. Everything
described in this document relates to version 1.0, unless stated otherwise.
The response for each packet will also have this structure. If a wrong formatted XML packet is sent to the H
YDRA,
you will receive an error message, please see below.