From 8844d4f45f8fb102a93814544b4a974bb28b15eb Mon Sep 17 00:00:00 2001 From: stpeter Date: Fri, 10 Jun 2011 10:21:14 -0600 Subject: [PATCH] XML not well formed in examples --- xep-0024.xml | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/xep-0024.xml b/xep-0024.xml index ec6a4424..f1a1a84b 100644 --- a/xep-0024.xml +++ b/xep-0024.xml @@ -276,6 +276,7 @@ SEND: <iq type='set' to='pubsub.localhost' <query xmlns='jabber:iq:pubsub'> <unsubscribe to='publisher'> <ns>namespace:1</ns> + </unsubscribe> </query> </iq> @@ -284,6 +285,7 @@ RECV: <iq type='result' from='pubsub.localhost' <query xmlns='jabber:iq:pubsub'> <unsubscribe to='publisher'> <ns>namespace:1</ns> + </unsubscribe> </query> </iq> @@ -541,22 +543,22 @@ SEND: <iq type='get' to='pubsub.localhost' </query> </iq> -RECV: >iq type='result' from='pubsub.localhost' +RECV: <iq type='result' from='pubsub.localhost' to='subscriber@localhost/resource' id='s1'> - >query xmlns='jabber:iq:pubsub'> - >subscribe> - >ns>namespace:1>/ns> - >ns>namespace:2>/ns> - >/subscribe> - >subscribe to='publisherA'> - >ns>namespace:2>/ns> - >ns>namespace:4>/ns> - >/subscribe> - >subscribe to='publisherB'> - >ns>namespace:5>/ns> - >/subscribe> - >/query> - >/iq> + <query xmlns='jabber:iq:pubsub'> + <subscribe> + <ns>namespace:1</ns> + <ns>namespace:2</ns> + </subscribe> + <subscribe to='publisherA'> + <ns>namespace:2</ns> + <ns>namespace:4</ns> + </subscribe> + <subscribe to='publisherB'> + <ns>namespace:5</ns> + </subscribe> + </query> + </iq>

@@ -586,7 +588,7 @@ A publisher can publish information within a certain namespace, like this: SEND: <iq type='set' to='pubsub.localhost' from='publisher@localhost/resource' id='s1'> <query xmlns='jabber:iq:pubsub'> - <publish ns='foo'/> + <publish ns='foo'> <foo xmlns='foo'>bar</foo> </publish> </query> @@ -595,7 +597,7 @@ SEND: <iq type='set' to='pubsub.localhost' RECV: <iq type='result' from='pubsub.localhost' to='publisher@localhost/resource' id='s1'> <query xmlns='jabber:iq:pubsub'> - <publish ns='foo'/> + <publish ns='foo'> <foo xmlns='foo'>bar</foo> </publish> </query> @@ -611,14 +613,14 @@ like this: SEND: <iq type='set' to='pubsub.localhost' from='publisher.localhost' id='s1'> <query xmlns='jabber:iq:pubsub'> - <publish ns='foo'/> + <publish ns='foo'> <foo xmlns='foo'>bar</foo> </publish> - <publish ns='jabber:x:oob'/> + <publish ns='jabber:x:oob'> <x xmlns='jabber:x:oob'> <url>http://www.pipetree.com/jabber/</url> <desc>Some stuff about Jabber</desc> - > + </x> </publish> </query> </iq> @@ -626,14 +628,14 @@ SEND: <iq type='set' to='pubsub.localhost' RECV: <iq type='result' from='pubsub.localhost' to='publisher.localhost' id='s1'> <query xmlns='jabber:iq:pubsub'> - <publish ns='foo'/> + <publish ns='foo'> <foo xmlns='foo'>bar</foo> </publish> - <publish ns='jabber:x:oob'/> + <publish ns='jabber:x:oob'> <x xmlns='jabber:x:oob'> <url>http://www.pipetree.com/jabber/</url> <desc>Some stuff about Jabber</desc> - > + </x> </publish> </query> </iq> @@ -697,7 +699,7 @@ must send to push this foo data out to a subscriber. SEND: <iq type='set' to='subscriber@localhost/foosink' from='pubsub.localhost' id='push1'> <query xmlns='jabber:iq:pubsub'> - <publish ns='foo' from='publisher@localhost'/> + <publish ns='foo' from='publisher@localhost'> <foo xmlns='foo'>bar</foo> </publish> </query>