×

Discussion Board

Results 1 to 8 of 8

Thread: Parse error.

  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Parse error.

    Hi,

    In my application to parse xml data, I am using CParser and implemented virtual functions of MContentHandler. For the string "Other language char ‘ " I am getting -996 at OnError(). If I remove the special character " " then it is working fine. I haven't found this error code on documentation.
    Plese help me to find out the solution for this issue.

    Thanks in Advance.

  2. #2
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Parse error.

    try to debug your application and show some piece of code here.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Re: Parse error.

    I am getting response from server which contains approx 50 key-value data in xml format. I am getting this -996 error at a time of parsing special character " ‘ " (Plz see char inside the double cote). I did the debugging and found that the error occured is for the same tag which contains this special character. I also tried to parse the same hardcoded response without this special charater then it is working fine.

    And the implementation of OnError() :
    Code:
    void CMyXmlEngine::OnError(TInt aErrorCode)
    {
    	iObserver->NotifyError(aErrorCode );//aErrorCode = -996.	
    }

  4. #4
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Parse error.

    Quote Originally Posted by shrawan0786 View Post
    I am getting response from server which contains approx 50 key-value data in xml format. I am getting this -996 error at a time of parsing special character " ‘ " (Plz see char inside the double cote). I did the debugging and found that the error occured is for the same tag which contains this special character. I also tried to parse the same hardcoded response without this special charater then it is working fine.

    And the implementation of OnError() :
    Code:
    void CMyXmlEngine::OnError(TInt aErrorCode)
    {
    	iObserver->NotifyError(aErrorCode );//aErrorCode = -996.	
    }
    ErrorCode = -996 is not available in error code list. can you show NotifyError() method implementation.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Re: Parse error.

    Thanks for ur quick rply.

    I also searched on symbian error code, -996 is not there but still I am getting this error in callback function. For this reason I posted here. But In NotifyError() I haven't did anything special, just handled the error code. There is nothing related with NotifyError().

    Any help regarding this will be highly appreciated.

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Parse error.

    -996 is EXmlInvalidToken as noted in xmlparseerrors.h

    Please post the xml element that is causing the parsing problems as it looks like this is an issue with your xml not being well formed.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  7. #7
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Re: Parse error.

    Thanks Paul,

    element for which I am getting this error is "Other language char ‘ just testing". Is there any way to parse the element although it contains these special/invalid characters like ( ‘ )?
    Last edited by shrawan0786; 2010-01-13 at 07:57.

  8. #8
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Parse error.

    what I meant was where is the error happening
    <is_it_happening_within_this>or is it happeing within this<is_it_happening_within_this>

    Also what is the encoding of your file (as specified in the XML processing directive on the first line of your xml file (normally this should be utf8)
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. Replies: 7
    Last Post: 2009-03-21, 18:54
  3. please help cell id
    By perthachy in forum Symbian
    Replies: 12
    Last Post: 2007-07-10, 13:14
  4. carbidec++ helloworld project problem
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-03-11, 12:40
  5. S80 Platform SDK and Visual Studio .NET Linking Error
    By jayantjain in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-10-07, 22:14

Posting Permissions

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