Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6586143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:45:10+00:00 2026-05-25T16:45:10+00:00

I use an XML parser to retrieve an xml from server. And I have

  • 0

I use an XML parser to retrieve an xml from server.

And I have the following two things:

NSMutableArray *catalogueList;
Catalogue *currentCatalogue;

Catalogue looks like this:

#import "Catalogue.h"

@implementation Catalogue

@synthesize id_model;
@synthesize name;
@synthesize url;

@end

And this piece of code also:

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{    
 if ([elementName isEqualToString:@"catalogue"]) 
{       
    // Add currentCatalogue to array
    [catalogueList addObject: currentCatalogue.url];
}

This works great, but there is a little problem. When I do this:

 NSLog(@"Valoare url %@", currentCatalogue.url);

it displays the correct URL.

But when I do this:

 NSLog(@"Valoare url %@", catalogueList);

the output is “link”.

which is not correct at all: instead of Coupé I get Coup\U00e9. Please tell me how to obtain in catalogueList the correct link with the é character.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:45:10+00:00Added an answer on May 25, 2026 at 4:45 pm

    You are printing an array instead of the object. Try this:

    NSLog(@"catalogueList url %@", [catalogueList objectAtIndex:0]);
    

    Check out this SOF question NSLog incorrect encoding .
    Similar problems with UTF8 characters

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using following code to parse rather large xml file (> 50GB): use XML::Parser;
I have a website that needs to pull information from two diffferent XML data
I want to pull in data using a XML::XPath parser from a XML DB
Is it possible to define a ListPreference in Xml and retrieve the value from
I'm trying to use feedparser to retrieve some specific information from feeds, but also
I have a requirement to both parse existing XML strings (retrieved from a database)
I would like to use Linq to Xml to get a single XElement from
I use a xml_parser to parse an xml. When I have a string like
I am trying to use GWT xml parser but the compiler throws next [ERROR]
I need to use a xml pull parser. I can find stax-api.jar which seems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.