User`s manual

11. Appendix A - Hydra Open Protocol
Barco – iStudio – R5976569 – user's manual – revision 09 – March-2007
____________________________________________________________________________________
11-4
11.1.3 Error notification
Unknown commands and syntax errors are reported by the XML parser and you will receive a notification.
Syntax errors
If the parser detects a syntax error it will send an ERROR message instead of the packet containing the
COMMANDRESULT.
The message may just contain the line where the syntax error was detected:
<XML>
<ERROR LINE="6"></ERROR>
</XML>
For some syntax errors the error tag contains additional information about the sign causing the error.
<XML>
<ERROR LINE="5">" Unexpected GT character "</ERROR>
</XML>
The table below lists these messages:
Identifier Sign causing a syntax error:
GT >
LT <
EQUAL =
Wrong command name
If a command name is misspelled the COMMANDRESULT tag shows an error notification containing the unknown
command name.
Send
<COMMAND ID="NOCOMMAND" SERIAL="example">
</COMMAND>
Receive
<COMMANDRESULT SERIAL="example" ERROR="1" ERRORMSG="Unknown command : NOCOMMAND">
</COMMANDRESULT>