Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Compressing XML—Part I, Writing WBXML : Page 4

WBXML is a binary form of XML suitable for wireless and bandwidth-restricted applications.


advertisement

Table 1: WBXML Byte Code for the WML of Listing 1

Byte No. Byte Code. Description. Byte No. Byte Code. Description.
1 0x03 WBXML version 1.3. 91 0x50 p.
2 0x04 Well known public identifier. 92 0x72 r.
3 0x6A Charset = UTF-8 93 0x6F o.
4 0x00 String table length. 94 0x64 d.
5 0x7F with content. 95 0x75 u.
6 0xE7 with content and attributes. 96 0x63 c.
7 0x55 Id= 97 0x74 t.
8 0x03 Inline string follows. 98 0x2E .
9 0x48 H. 99 0x00 Inline String ends.
10 0x6F o. 100 0x01
11 0x6D m. 101 0x01

12 0x65 e. 102 0x01
13 0x00 Inline String ends. 103 0xE7 with content and attributes
14 0x36 Title attribute code. 104 0x55 id=
15 0x03 Inline String follows. 105 0x03 Inline string follows.
16 0x54 T. 106 0x50 P.
17 0x68 h. 107 0x72 r.
18 0x65 e. 108 0x6F o.
19 0x20 Space 109 0x64 d.
20 0x68 h. 110 0x75 u.
21 0x6F o. 111 0x63 c.
22 0x6D m. 112 0x74 t.
23 0x65 e. 113 0x00 Inline string ends.
24 0x20 Space 114 0x36 Title attribute code.
25 0x70 p. 115 0x03 Inline String follows.
26 0x61 a. 116 0x54 T.
27 0x67 g. 117 0x68 h.
28 0x65 e. 118 0x65 e.
29 0x00 Inline String ends. 119 0x20 Space
30 0x01 END (of card attribute list). 120 0x50 P.
31 0x60

with content.

121 0x72 r.
32 0x03 Inline String follows. 122 0x6F o.
33 0x20 Space 123 0x64 d.
34 0x57 W. 124 0x75 u.
35 0x65 e. 125 0x63 c.
36 0x6C l. 126 0x74 t.
37 0x63 c. 127 0x20 Space
38 0x6F o. 128 0x43 C.
39 0x6D m. 129 0x61 a.
40 0x65 e. 130 0x72 r.
41 0x2E . 131 0x64 d.
42 0x20 Space 132 0x00 Inline String ends.
43 0x54 T. 133 0x01 End of attribute list.
44 0x68 h. 134 0x60


with content.

45 0x69 i. 135 0x03 Inline String follows.
46 0x73 s. 136 0x20 Space
47 0x20 Space 137 0x57 W.
48 0x69 i. 138 0x65 e.
49 0x73 s. 139 0x6C l.
45 0x20 Space 140 0x63 c.
51 0x74 t. 141 0x6F o.
52 0x68 h. 142 0x6D m.
53 0x65 e. 143 0x65 e.
54 0x20 Space 144 0x2E .
55 0x48 H. 145 0x20 Space
56 0x6F o. 146 0x54 T
57 0x6D m. 147 0x68 h.
58 0x65 e. 148 0x69 i.
59 0x20 Space 149 0x73 s.
60 0x50 P. 150 0x20 Space
61 0x61 a. 151 0x69 i.
62 0x67 g. 152 0x73 s.
63 0x65 e. 153 0x20 Space
64 0x2E . 154 0x74 t.
65 0x00 Inline String ends. 155 0x68 h.
66 0xDC with content and attributes (1c +40+80). 156 0x65 e.
67 0x4A Href attribute code. 157 0x20 Space
68 0x03 Inline string follows. 158 0x70 p.
69 0x23 # 159 0x61 a.
70 0x50 P. 160 0x67 g.
71 0x72 r. 161 0x65 e.
72 0x6F o. 162 0x20 Space
73 0x64 d. 163 0x66 f.
74 0x75 u. 164 0x6F o.
75 0x63 c. 165 0x72 r.
76 0x74 t. 166 0x20 Space
77 0x00 Inline String ends. 167 0x70 p.
78 0x01 , the tag ends. 168 0x72 r.
79 0x03 Inline string follows. 169 0x6F o.
80 0x20 Space 170 0x64 d.
81 0x43 C. 171 0x75 u.
82 0x6C l. 172 0x63 c.
83 0x69 i. 173 0x74 t.
84 0x63 c. 174 0x73 s.
85 0x6B k. 175 0x2E .
86 0x20 Space 176 0x20 Space
87 0x66 f. 177 0x00 Inline String ends.
88 0x6F o. 178 0x01

ends
89 0x72 r. 179 0x01 ends
90 0x20 Space 180 0x01 ends


Bilal Siddiqui, is an Electronics Engineer, an XML consultant and the co-founder of WaxSys, a company focused on simplifying E-Business. He is a technology evangelist and frequently-published technical author.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap