?? x6299.htm
字號(hào):
<HTML
><HEAD
><TITLE
>The X::IQ relationship</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="Programming Jabber"
HREF="book1.htm"><LINK
REL="UP"
TITLE="Jabber Namespaces"
HREF="c5281.htm"><LINK
REL="PREVIOUS"
TITLE="The X Namespaces"
HREF="x6079.htm"><LINK
REL="NEXT"
TITLE="User Registration and Authorization"
HREF="c6313.htm"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Programming Jabber</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x6079.htm"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 5a. Jabber Namespaces</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="c6313.htm"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="JABTDG-CH-5A-SECT-4"
>The X::IQ relationship</A
></H1
><P
>As has been noted, some of the X namespaces have cousins in the
IQ space—<I
CLASS="EMPHASIS"
>autoupdate</I
>,
<I
CLASS="EMPHASIS"
>conference</I
>, <I
CLASS="EMPHASIS"
>roster</I
>,
and <I
CLASS="EMPHASIS"
>oob</I
>. If you're still confused about
which to use where, there's a rule of thumb about context: The
IQ namespaces generally are used to qualify a
<I
CLASS="EMPHASIS"
>conversation</I
> that revolves around whatever
the namespace represents, while the X namespaces apply more
to one-off, ad-hoc, information-laden messages. </P
><P
>For example, the
<TT
CLASS="LITERAL"
>jabber:iq:conference</TT
> namespace qualifies the
much of the content of a conversation between a user and the
conferencing service regarding entry to a specific room.
The <TT
CLASS="LITERAL"
>jabber:x:conference</TT
> namespace
is used to provide context and meaning to a pointer to a room.</P
><P
>Likewise, the <TT
CLASS="LITERAL"
>jabber:x:oob</TT
> namespace qualifies
a pointer to some piece of information that is out of band, where
as the <TT
CLASS="LITERAL"
>jabber:iq:oob</TT
> namespace provides
context to a negotiation that leads to the usage of that external
bandwidth.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x6079.htm"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c6313.htm"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The X Namespaces</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c5281.htm"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>User Registration and Authorization</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -