没有合适的资源?快使用搜索试试~ 我知道了~
WBXML规范:Binary XML Content Format Specification
5星 · 超过95%的资源 需积分: 16 82 下载量 109 浏览量
2009-10-14
20:50:04
上传
评论
收藏 105KB PDF 举报
温馨提示
试读
30页
WBXML的完整规范文档。 如果你正在开发WAP相关的,或者其他手机上的应用,可以参考该规范。
资源推荐
资源详情
资源评论
2001, Wireless Application Protocol Forum, Ltd. All Rights Reserved. Terms and conditions of use are available from
the WAP Forum Web site (http://www.wapforum.org/what/copyright.htm ).
Binary XML Content Format Specification
Version 1.3, 25 July 2001
Wireless Application Protocol
WAP-192-WBXML-20010725-a
A list of errata and updates to this document is available from the WAP Forum
TM
Web site, http://www.wapforum.org/,
in the form of SIN documents, which are subject to revision or removal without notice.
WAP-192-WBXML-20010725-a, Version 1.3, 25 July 2001 Page 2 (30)
2001, Wireless Application Protocol Forum, Ltd.
All rights reserved
© 2001, Wireless Application Protocol Forum, Ltd. All rights reserved.
Terms and conditions of use are available from the WAP Forum Web site at
http://www.wapforum.org/what/copyright.htm.
You may use this document or any part of the document for internal or educational purposes only, provided you do not
modify, edit or take out of context the information in this document in any manner. You may not use this document in
any other manner without the prior written permission of the WAP Forum™. The WAP Forum authorises you to copy
this document, provided that you retain all copyright and other proprietary notices contained in the original materials on
any copies of the materials and that you comply strictly with these terms. This copyright permission does not constitute
an endorsement of the products or services offered by you.
The WAP Forum™ assumes no responsibility for errors or omissions in this document. In no event shall the WAP
Forum be liable for any special, indirect or consequential damages or any damages whatsoever arising out of or in
connection with the use of this information.
WAP Forum™ members have agreed to use reasonable endeavors to disclose in a timely manner to the WAP Forum the
existence of all intellectual property rights (IPR's) essential to the present document. The members do not have an
obligation to conduct IPR searches. This information is publicly available to members and non-members of the WAP
Forum and may be found on the "WAP IPR Declarations" list at http://www.wapforum.org/what/ipr.htm. Essential IPR
is available for license on the basis set out in the schedule to the WAP Forum Application Form.
No representations or warranties (whether express or implied) are made by the WAP Forum™ or any WAP Forum
member or its affiliates regarding any of the IPR's represented on this list, including but not limited to the accuracy,
completeness, validity or relevance of the information or whether or not such rights are essential or non-essential.
This document is available online in PDF format at http://www.wapforum.org/.
Known problems associated with this document are published at http://www.wapforum.org/.
Comments regarding this document can be submitted to the WAP Forum™ in the manner published at
http://www.wapforum.org/.
Document History
WAP-192-WBXML-20000517-a Released
V1.3
WAP-192.101-WBXML-20000921 SIN
WAP-192.102-WBXML-20001212 SIN
WAP-192.104-WBXML-20010416 SIN
WAP-192-WBXML-20010725-a Current
WAP-192-WBXML-20010725-a, Version 1.3, 25 July 2001 Page 3 (30)
2001, Wireless Application Protocol Forum, Ltd.
All rights reserved
Contents
1. SCOPE...............................................................................................................................................................................................4
2. DOCUMENT STATUS .................................................................................................................................................................5
2.1. COPYRIGHT NOTICE................................................................................................................................................................5
2.2. ERRATA .......................................................................................................................................................................................5
2.3. COMMENTS .................................................................................................................................................................................5
2.4. DOCUMENT HISTORY...............................................................................................................................................................5
2.5. CHANGES IN THIS VERSION.....................................................................................................................................................5
3. REFERENCES ................................................................................................................................................................................7
3.1. NORMATIVE REFERENCES ......................................................................................................................................................7
3.2. INFORMATIVE REFERENCES...................................................................................................................................................7
4. TERMINOLOGY AND CONVENTIONS ..............................................................................................................................8
4.1. CONVENTIONS ...........................................................................................................................................................................8
4.2. DEFINITIONS ..............................................................................................................................................................................8
4.3. ABBREVIATIONS ........................................................................................................................................................................8
5. BINARY XML CONTENT STRUCTURE............................................................................................................................10
5.1. MULTI-BYTE INTEGERS.........................................................................................................................................................10
5.2. CHARACTER ENCODING........................................................................................................................................................10
5.3. BNF FOR DOCUMENT STRUCTURE.....................................................................................................................................11
5.4. VERSION NUMBER ..................................................................................................................................................................12
5.5. DOCUMENT PUBLIC IDENTIFIER..........................................................................................................................................12
5.6. CHARSET...................................................................................................................................................................................12
5.7. STRING TABLE.........................................................................................................................................................................13
5.8. TOKEN STRUCTURE................................................................................................................................................................14
5.8.1. Parser State Machine.......................................................................................................................................................14
5.8.2. Tag Code Space ...............................................................................................................................................................15
5.8.3. Attribute Code Space (ATTRSTART and ATTRVALUE) .....................................................................................15
5.8.4. Global Tokens..................................................................................................................................................................16
6. ENCODING SEMANTICS ........................................................................................................................................................19
6.1. DOCUMENT TOKENISATION.................................................................................................................................................19
6.2. DOCUMENT STRUCTURE CONFORMANCE.........................................................................................................................19
6.3. ENCODING DEFAULT ATTRIBUTE VALUES .......................................................................................................................20
6.4. ASSOCIATING XML DOCUMENTS WITH WBXML TOKEN VALUES ...........................................................................20
7. NUMERIC CONSTANTS ..........................................................................................................................................................22
7.1. GLOBAL TOKENS ....................................................................................................................................................................22
7.2. PUBLIC IDENTIFIERS ..............................................................................................................................................................23
7.2.1. Public Indentifier table example ...................................................................................................................................23
8. ENCODING EXAMPLES ..........................................................................................................................................................24
8.1. A SIMPLE XML DOCUMENT................................................................................................................................................24
8.2. AN EXPANDED EXAMPLE ......................................................................................................................................................25
9. STATIC CONFORMANCE REQUIREMENTS.................................................................................................................29
1.1 WBXML DOCUMENT ......................................................................................................................................................29
1.2 WBXML ENCODER..........................................................................................................................................................29
1.3 WBXML DECODER..........................................................................................................................................................30
WAP-192-WBXML-20010725-a, Version 1.3, 25 July 2001 Page 4 (30)
2001, Wireless Application Protocol Forum, Ltd.
All rights reserved
1. Scope
Wireless Application Protocol (WAP) is a result of continuous work to define an industry-wide specification for
developing applications that operate over wireless communication networks. The scope of the WAP Forum is to define
a set of specifications to be used by service applications. The wireless market is growing very quickly and reaching new
customers and services. To enable operators and manufacturers to meet the challenges in advanced services,
differentiation and fast/flexible service creation, WAP defines a set of protocols in transport, session and application
layers. For additional information on the WAP architecture, refer to "Wireless Application Protocol Architecture
Specification" [WAP].
This specification defines a compact binary representation of the Extensible Markup Language [XML]. The binary
XML content format is designed to reduce the transmission size of XML documents, allowing more effective use of
XML data on narrowband communication channels. Refer to the [WML1] specification for one example use of the
binary XML content format.
The binary format was designed to allow for compact transmission with no loss of functionality or semantic
information. The format is designed to preserve the element structure of XML, allowing a browser to skip unknown
elements or attributes. The binary format encodes the parsed physical form of an XML document, i.e., the structure and
content of the document entities. Meta-information, including the document type definition and conditional sections, is
removed when the document is converted to the binary format.
WAP-192-WBXML-20010725-a, Version 1.3, 25 July 2001 Page 5 (30)
2001, Wireless Application Protocol Forum, Ltd.
All rights reserved
2. Document Status
This document is available online in the following formats:
• PDF format at http://www.wapforum.org/.
2.1. Copyright Notice
© Copyright Wireless Application Forum Ltd, 1998, 1999, 2000, 2001.
Terms and conditions of use are available from the Wireless Application Protocol Forum Ltd. web site at
http://www.wapforum.org/docs/copyright.htm.
2.2. Errata
Known problems associated with this document are published at http://www.wapforum.org/.
2.3. Comments
Comments regarding this document can be submitted to the WAP Forum in the manner published at
http://www.wapforum.org/.
2.4. Document History
Document ID Date Version
WAP-104 1998 04 30 1.0
WAP-135 1999 06 16 1.1
WAP-154 1999 11 04 1.2
WAP-192 and WAP-192.100 SCD 2000 02 19 and 2000 05 17 1.3 Draft and SCD
WAP-192.101 2000 09 21 1.3 SIN
WAP-192.102 2000 12 12 1.3 SIN
WAP-192.103 2001 01 28 1.3 SIN not issued
WAP-192.104 2001 04 16 1.3 SIN Roll-up and document
restructuring
WAP-192 2001 07 25 1.3 SIN Rollup and document style
change
2.5. Changes in this version
Convert WAP-192.104-WBXML-20010416 into the new template. Inherit references to CREQ and BNF. Added
missing header for 7.2.1.
Add update to document history.
剩余29页未读,继续阅读
资源评论
- oWanLi12012-12-27很有用!解决问题了
- halimeimei2012-06-27可以用,有参考价值
sheltont
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功