Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User ramyaas's Avatar
    Join Date
    Jun 2007
    Posts
    6
    how to parse wbxml file with xml namespace using kxml/kxml2 parser or which is the best parser to work with j2me midp.

    for example xml file with namespace:

    <?xml version="1.0" encoding="utf-8"?>
    <Sync xmlns="AirSync:" xmlns:A="CONTACTS:">
    <Collections>
    <Collection>
    <Class>Contacts</Class>
    <SyncKey>{6A374473-D63E-45FA-8556-129C8C1C3CFA}11</SyncKey>
    <Status>1</Status>
    <Commands>
    <Add>
    <ServerId>rid:01c133474e27d04faba48d02078cf41d00000090e129
    </ServerId>
    <ApplicationData>
    <A:FileAs>Mouse, Mickey</A:FileAs>
    <A:FirstName>Mickey</A:FirstName>
    <A:LastName>Mouse</A:LastName>
    <A:BusinessPhoneNumber>(425) 555-1212</A:BusinessPhoneNumber>
    </ApplicationData>
    </Add>
    </Commands>
    </Collection>
    </Collections>
    </Sync>

  2. #2
    Nokia Developer Expert dcrocha's Avatar
    Join Date
    Jun 2005
    Posts
    923
    WBXML is not a simple XML file: it's an XML file encoded according to Wap Binary XML encoding. You'll have first to write your own decoder, and then user kXML or JSR 172 to parse the source XML.

    Daniel

  3. #3

  4. #4
    Registered User ramyaas's Avatar
    Join Date
    Jun 2007
    Posts
    6
    Quote Originally Posted by dcrocha
    WBXML is not a simple XML file: it's an XML file encoded according to Wap Binary XML encoding. You'll have first to write your own decoder, and then user kXML or JSR 172 to parse the source XML.

    Daniel
    please tell cant we parse the wbxml file directly with out decoding to xml. how to parse the wbxml file using kxml2 parser with namespace. please help me.

    Ramya.
    Last edited by ramyaas; 2007-06-13 at 13:28.

  5. #5
    Registered User ramyaas's Avatar
    Join Date
    Jun 2007
    Posts
    6
    Please anyone help me. how to parse the wbxml data in j2me. how to parse the codepages and tokens in that wbxml file.

    Ramya.

  6. #6
    Nokia Developer Expert dcrocha's Avatar
    Join Date
    Jun 2005
    Posts
    923
    I didn't know kXML had a WBXML parser. That's a good thing, because you just can use it with the instructions given by the thread traud pointed. No need to write your own decoder.

    Daniel

  7. #7
    Registered User ramyaas's Avatar
    Join Date
    Jun 2007
    Posts
    6
    Quote Originally Posted by dcrocha
    I didn't know kXML had a WBXML parser. That's a good thing, because you just can use it with the instructions given by the thread traud pointed. No need to write your own decoder.

    Daniel
    i checked with the thread traud pointed, but i didnt get what i need. KXML/KXML2 parser has WBXML parser and supports namespace but how to use that i didnt know. Thank you for your reply's.

Similar Threads

  1. Parsing wbxml file to xml file using kxml parser
    By ramyashashe in forum Mobile Java General
    Replies: 18
    Last Post: 2010-05-17, 15:56
  2. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Python
    Replies: 35
    Last Post: 2008-01-17, 09:12
  3. Replies: 5
    Last Post: 2006-04-09, 10:54
  4. File access using J2ME in 3650
    By rave_symbian in forum Mobile Java General
    Replies: 1
    Last Post: 2005-12-16, 16:20
  5. J2ME Wireless Toolkit 2.2 & Series 60 MIDP SDK problem
    By schmooz in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2005-11-28, 22:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved