Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor nisheethpandey's Avatar
    Join Date
    Feb 2009
    Posts
    181
    I am trying to use the XML parser to parse a XML file. But an error occurs in the foollowing line :

    iParser = CParser::NewL( KXmlMimeType, *this );

    The Error code is -17551 which says : KErrXmlParserPluginNotFound

    I am using the free versions of S60 5th Edition SDK and Carbide C++ 2.0 .

    How can this problem be rectified?

    Plz Help

  2. #2
    Super Contributor Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    What is the value of KXmlMimeType?
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Regular Contributor nisheethpandey's Avatar
    Join Date
    Feb 2009
    Posts
    181
    KXmlMimeType is the location of a XML file. I have shared the C drive of my desktop and using it as memory card. Then I have copied the file from the memory card to the Phone memory.

    _LIT8( KXmlMimeType, "C://Data//BuildData.xml" );

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    That constant and those '/'-s suggest that you did not really understand an example you have seen... The original "text/xml" was not a joke, and MIME type is not a file name.
    CParser expects you to read the file and feed it into its ParseL method.
    If you want to skip this part, use CSenXmlReader, it has a ParseL accepting a file name.

  5. #5
    Super Contributor Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    static functions such as Xml::ParseL is also avaliable to parse a file
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  6. #6
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    Hehh, thank you. Those methods simply do not exist in older SDK Help-s (found them in parser.h only).

  7. #7
    Regular Contributor contra03's Avatar
    Join Date
    Jul 2009
    Posts
    68
    Can somebody redirect me to an example code for XML parsing which uses CSenXmlReader.

    Thanks in advance

Similar Threads

  1. STLPort namespace issue
    By yickhong in forum Open C/C++
    Replies: 0
    Last Post: 2009-04-09, 08:54
  2. XML writing and Appending the Problem
    By talk2mishal in forum Mobile Java General
    Replies: 3
    Last Post: 2008-09-19, 19:24
  3. Symbian Xml Parser
    By ManOfSteel in forum Symbian C++
    Replies: 1
    Last Post: 2004-09-17, 07:36
  4. XML Parser
    By ajsanchez in forum Symbian C++
    Replies: 6
    Last Post: 2004-05-09, 08:45
  5. Expat xml parser for series 60
    By alokkumarsingh in forum Symbian C++
    Replies: 0
    Last Post: 2004-03-25, 09:58

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