2 # RAW XMPP messages, which can be used with sendxmpp
4 # Thanks to David Ammouial <da AT weeno.net>
6 # cat examples/send-url.xml | sendxmpp --raw
9 # Sending an URL along with a message:
10 <message to='foo@server.com'>
11 <body>Check out the new sendxmpp website!</body>
12 <x xmlns='jabber:x:oob'>
13 <url>http://sendxmpp.platon.sk/</url>
17 # Adding an item to the roster
18 <iq type="set" id="a1">
19 <query xmlns="jabber:iq:roster">
20 <item jid="newfriend@hello.com" name="Lisa" />
24 # Sending a presence subscription request
25 <presence to="newfriend@hello.com" type="subscribe">
26 <status>Please authorize me :)</status>