design xml wbxml conversion

Upload: santosh-kadam

Post on 04-Jun-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Design XML WBXML Conversion

    1/12

    Fiberlink Software Pvt. Ltd.

    Design Document

    for

    Development of APIs for XML to WBXMLConversion and WBXML to XML for ActiveSync

    Version 00.01

    Date :21 !an 201"#

  • 8/13/2019 Design XML WBXML Conversion

    2/12

    Project ID: 14-237 Design Document

    Approval

    Design DocumentDocument

    VersionPrepared y !evie"ed y Approved By

    #ame $ Si%nature Date #ame $ Si%nature Date #ame $ Si%nature Date

    00.01 $un%an &Sa'u

    This document is the property of Integra Micro Systems Pvt. Ltd., and its contents are confidential to Integra Micro Systems. Reproduction of the materials contained herein, in part or full in any form by anyone, without the permission of Integra Micro

    Systems is prohibited.

    Pro(rietar) and *onfidential +Version 00.01# i

  • 8/13/2019 Design XML WBXML Conversion

    3/12

    Project ID: 14-237 Design Document

    !evision &istory

    Version#um er

    Brief description of c'an%e !eference forc'an%e

    AffectedSection(s)

    *ffective Date

    Pro(rietar) and *onfidential +Version 00.01# ii

  • 8/13/2019 Design XML WBXML Conversion

    4/12

    Project ID: 14-237 Design Document

    ,- L/ F * ,/ ,S

    + I#,!-D.C,I-#//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+

    1.1 P 3P S/ ..................................................................................................................................................11.2 S * P/ ......................................................................................................................................................11.4 3 /F/3/ */S ............................................................................................................................................1

    0 D*,AIL*D D*SI1# C-#SID*!A,I-#S/////////////////////////////////////////////////////////////////////////////////////////////+

    2.1 - L$ 35,67S ...........................................................................................................................................22.2 * D5 $ $ 5D/L5 /S - D * V/ ,5 S ...............................................................................................2

    2 D*C-MP-SI,I-# D*SC!IP,I-# ///////////////////////////////////////////////////////////////////////////////////////////////////////0

    4.1 87L , 9 87L * V/3,/3 - 3*65,/*, 3/ ...................................................................................2 .........................................................................................................................

    .!.! Identification .................................................................................................................................."

    .!.# Type................................................................................................................................................."

    .!. Purpose............................................................................................................................................"

    .!." $unction.........................................................................................................................................."

    .!.% &omposition...................................................................................................................................."

    .!.' &omponent (escriptions................................................................................................................." *om(onent ame..............................................................................................................................................."

    4.1. .1.1 5nterfaces.........................................................................................................................................."4.1. .2 Processing................................................................................................................................................;4.1. .4 Data.........................................................................................................................................................

    4.2 +7 D L/ 2#...........................................................................................................................................#.! Identification ..................................................................................................................................' .#.# Type.................................................................................................................................................' .#. Purpose............................................................................................................................................' .#." $unction..........................................................................................................................................' .#.% &omposition....................................................................................................................................' .#.' &omponent (escriptions.................................................................................................................'

    4.2. .1 *om(onent ame....................................................................................................................................4.2. .1.1 5nterfaces..........................................................................................................................................

    4.2. .2 Processing................................................................................................................................................4.2. .4 Data.........................................................................................................................................................

    Pro(rietar) and *onfidential +Version 00.01# iii

  • 8/13/2019 Design XML WBXML Conversion

    5/12

    Project ID: 14-237 Design Document

    1 Introduction

    This document describes the design level details of the ml to !b ml conversionand !b ml to ml conversion for "ctive#$nc code %ages 14&'

    1.1 Purpose

    The %ur%ose of the document is

    To translate the re(uirements stated in )*D + #,# into a format amenablefor coding&To form the basis for nit Test Plan&

    1.2 Scope

    This document identifies the design level com%onents of ml to !b ml conversion and!b ml to ml conversion .

    1.3 References

    #./- "ctive#$nc 0 * to / 0 * onversion&doc

    "ctive#$nc ode Pages 14&'

    htt%: !!!&!3&org 1555 '6 .T8-!b ml-1555'624

    htt%: !!!&iana&org assignments character-sets character-sets& ml

    2 Detailed Design Considerations

    This section describes the design com%onents and the corres%onding algorithms used forim%lementing the ml to !b ml conversion and !b ml to ml conversion .

    Pro(rietar) and *onfidential +Version 00.01# Page 1

    http://www.w3.org/1999/06/NOTE-wbxml-19990624/http://www.iana.org/assignments/character-sets/character-sets.xmlhttp://www.iana.org/assignments/character-sets/character-sets.xmlhttp://www.w3.org/1999/06/NOTE-wbxml-19990624/http://www.iana.org/assignments/character-sets/character-sets.xml
  • 8/13/2019 Design XML WBXML Conversion

    6/12

    Project ID: 14-237 Design Document

    2.1 Algorithms

    Please follo! htt%: !!!&!3&org 1555 '6 .T8-!b ml-1555'624

    2.2 Coding guidelines and Conventions

    For coding conventions and guidelines< (lease follow t'e coding standard documentation=>*oding Standards for t'e * Language?@ t'at is available at A7S location

    'tt(:BB1C2. 2.241.11 :4"E;BAualit)Bv4.20B,o* *odingstandards.'tml

    3 Decomposition Description

    3.1 X ! to "#X ! Converter Architecture

    Pro(rietar) and *onfidential +Version 00.01# Page 2

    http://www.w3.org/1999/06/NOTE-wbxml-19990624/http://www.w3.org/1999/06/NOTE-wbxml-19990624/http://www.w3.org/1999/06/NOTE-wbxml-19990624/
  • 8/13/2019 Design XML WBXML Conversion

    7/12

    Project ID: 14-237 Design Document

    Pro(rietar) and *onfidential +Version 00.01# Page 4

    onv9 ml9!b ml ml; ml len; !b ml& !b ml len< = Pre%are the "ctive#$nc Dictionar$&

    #et handler function for ml9%arse& )andle9#tart98lement; )andle98nd98lement; )andle9Data<

    0 *9Parse < >

    ?

    8ml /rror G3eturn wit' /rror

    Hes

    1 o

    Coninue tilllast token andcheck each

    token type andcallcorrespondinghendler

    DataPut data in wbIml buffer

    5n 'eIa form/nd /lement

    Put the appropiatevalue In the wbxml

    buffer

    S t a r t / l e m

    e n t

    )andle9#tart98lement < = hec@ names%ace !ith current names%ace& If names%ace differ; get the name s%ace value from code %agesvalue from dictionar$&

    Aind98lement

    hec@ the attribute %resence b$ caling )andle9"ttribute