1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

corrected examples

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3288 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2009-06-29 19:28:49 +00:00
parent a9f20ff98c
commit 45b1d8b8ca

View File

@ -58,41 +58,41 @@
</ul>
<p>As shown in the following examples, a node is not encapsulated in the JabberID but instead is communicated in protocol to indicate that the interaction is directed to or from a specific facet of a domain, a localpart, or a resource.</p>
<example caption="Nodes in Service Discovery: a disco#info request directed to a specific node"><![CDATA[
&lt;iq type='get'
<iq type='get'
from='romeo@montague.net/orchard'
to='mim.shakespeare.lit'
id='info3'&gt;
&lt;query xmlns='http://jabber.org/protocol/disco#info'
node='http://jabber.org/protocol/commands'/&gt;
&lt;/iq&gt;
id='info3'>
<query xmlns='http://jabber.org/protocol/disco#info'
node='http://jabber.org/protocol/commands'/>
</iq>
]]></example>
<example caption="Nodes in Publish-Subscribe: a publish request directed to a specific node"><![CDATA[
&lt;iq type='set'
<iq type='set'
from='hamlet@denmark.lit/blogbot'
to='pubsub.shakespeare.lit'
id='pub1'&gt;
&lt;pubsub xmlns='http://jabber.org/protocol/pubsub'&gt;
&lt;publish node='princely_musings'&gt;
&lt;item&gt;
&lt;entry xmlns='http://www.w3.org/2005/Atom'&gt;
&lt;title&gt;Soliloquy&lt;/title&gt;
&lt;summary&gt;
id='pub1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='princely_musings'>
<item>
<entry xmlns='http://www.w3.org/2005/Atom'>
<title>Soliloquy</title>
<summary>
To be, or not to be: that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune,
Or to take arms against a sea of troubles,
And by opposing end them?
&lt;/summary&gt;
&lt;link rel='alternate' type='text/html'
href='http://denmark.lit/2003/12/13/atom03'/&gt;
&lt;id&gt;tag:denmark.lit,2003:entry-32397&lt;/id&gt;
&lt;published&gt;2003-12-13T18:30:02Z&lt;/published&gt;
&lt;updated&gt;2003-12-13T18:30:02Z&lt;/updated&gt;
&lt;/entry&gt;
&lt;/item&gt;
&lt;/publish&gt;
&lt;/pubsub&gt;
&lt;/iq&gt;
</summary>
<link rel='alternate' type='text/html'
href='http://denmark.lit/2003/12/13/atom03'/>
<id>tag:denmark.lit,2003:entry-32397</id>
<published>2003-12-13T18:30:02Z</published>
<updated>2003-12-13T18:30:02Z</updated>
</entry>
</item>
</publish>
</pubsub>
</iq>
]]></example>
</section1>
<section1 topic='Use in XMPP URIs' anchor='uri'>