×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    181

    XML Parser Problem

    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
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: XML Parser Problem

    What is the value of KXmlMimeType?
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    181

    Re: XML Parser Problem

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: XML Parser Problem

    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
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: XML Parser Problem

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: XML Parser Problem

    Hehh, thank you. Those methods simply do not exist in older SDK Help-s (found them in parser.h only).

  7. #7
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    68

    Re: XML Parser Problem

    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
    Replies: 1
    Last Post: 2004-09-17, 07:36
  4. XML Parser
    By ajsanchez in forum Symbian
    Replies: 6
    Last Post: 2004-05-09, 08:45
  5. Expat xml parser for series 60
    By alokkumarsingh in forum Symbian
    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
  •  
×