+\makeatletter \def\verbatim@font{\sffamily\scriptsize} \makeatother
+
+\begin{figure}[tp]
+ \small\centering
+\begin{tabular}{p{5cm}p{5cm}}
+Client to Device $\rightarrow$ & $\leftarrow$ Device to Client\\
+
+\begin{verbatim}
+<stream>
+\end{verbatim} & \\
+
+ & \begin{verbatim}
+<stream>
+\end{verbatim} \\
+
+\begin{verbatim}
+<iq type='get' id='1'
+ to='dev@device.local/res'
+ from='client@client.local'>
+ <req xmlns='urn:xmpp:sn' seqnr='1'
+ momentary='true'>
+ <node nodeId='Device04'/>
+ <field name='Energy'/>
+ <field name='Power'/>
+ </req>
+</iq>
+\end{verbatim} & \\
+
+ & \begin{verbatim}<iq type='result' id='1'
+ from='dev@device.local'
+ to='client@client.local/res'>
+ <accepted xmlns='urn:xmpp:sn' seqnr='1'/>
+</iq>
+\end{verbatim} \\
+
+ & \begin{verbatim}
+<message from='dev@device.local'
+ to='client@client.local/res'>
+ <fields xmlns='urn:xmpp:sn' seqnr='1' done='true'>
+ <node nodeId='Device04'>
+ <timestamp value='2013-03-07T22:03:15'>
+ <numeric name='Energy' momentary='true'
+ value='12345.67' unit='MWh'/>
+ <numeric name='Power' momentary='true'
+ value='239.4' unit='W'/>
+ </timestamp>
+ </node>
+ </fields>
+</message>
+\end{verbatim} \\
+
+\begin{verbatim}
+</stream>
+\end{verbatim} & \\
+
+ & \begin{verbatim}
+</stream>
+\end{verbatim} \\
+\end{tabular}
+ \caption{Example XMPP stream with sensor data (XEP-0323)}
+ \label{fig:examplexmpp}
+\end{figure}
+% vim: set ft=tex et ts=2 sw=2 :