×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    30

    xml through rfcomm

    i was just trying to use a bluetooth program to send queries and receive them from a Linux box...the response is looked up from a simple database...i was wondering how can i use xml for this (or anything else)and how to parse it in my symbian program to present it to the user in.

    im using rfcomm layer to data transfer and the sdk is 2nd edition fp2.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: xml through rfcomm

    Hi,

    there is the usage of CParse class:

    Code:
      iParser = CParser::NewL( KMimeTypeTextXml, *this );
      iParser->ParseBeginL(); 
      iParser->ParseL( *xml );
      iParser->ParseEndL();
    where, the xml variable is the HBufC8 XML data heap buffer pointer. The second parameter of the NewL() static constructor is the reference to the implementation of MContentHandler abstract class, which methods are called during parsing (i.e. classic SAX parser).

    BR
    STeN

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    30

    Re: xml through rfcomm

    i thank u a lot for ur reply, but the first part of my question remains is using rfcomm to transfer xml data (files)feasible.

  4. #4
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: xml through rfcomm

    Hi s-factor,

    you can send any kind of data like xml, It is feasible, not an issue but you have to ensure that with your application this is feasible or not.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

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. Is L2CAP worth the extra effort?
    By ed_welch in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-02-23, 10:02
  3. xml Generation(not parsing) on mobile
    By p_joon in forum Mobile Java General
    Replies: 7
    Last Post: 2007-01-11, 15:39
  4. generating an XML file..
    By mayankkedia in forum Symbian
    Replies: 0
    Last Post: 2007-01-10, 14:42
  5. Sending XML file from server to mobile
    By bvsbh in forum Mobile Java General
    Replies: 1
    Last Post: 2005-11-30, 14:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×