mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
XML not well formed in examples
This commit is contained in:
parent
b381f64aef
commit
8844d4f45f
50
xep-0024.xml
50
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>
|
||||
</example>
|
||||
@ -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>
|
||||
</example>
|
||||
|
||||
<p>
|
||||
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user