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 700611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:31:03+00:00 2026-05-14T03:31:03+00:00

i have an online xml file filled with items. At startup i check my

  • 0

i have an online xml file filled with items.

At startup i check my internet connection, if so, i parse the xml and compare the item objects to those in my sqlite database. One of the item values is ‘lastupdated’, whichs is a php generated string.

if the lastupdated value from the xml item is different from the value of the one in the database, the item needs to be updated into the database.

I seem to have parsing errors: as the lastupdated value in my database has 10 characters, and the one in my xml file seems to have 11.. When I output both i get the following:

2010-03-26 15:15:07.771 bbc_v1[97647:207] 1269429166
2010-03-26 15:15:07.771 bbc_v1[97647:207]
1269429166
2010-03-26 15:15:07.771 bbc_v1[97647:207] lenght xml item value: 11
2010-03-26 15:15:07.771 bbc_v1[97647:207] length db value: 10

it seems i’m having parsing problems with whitespace and enter/return stuff? How should I clean the xml value?

  • 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-14T03:31:03+00:00Added an answer on May 14, 2026 at 3:31 am

    Try the -stringByTrimmingCharactersInSet function:

    NSString* cleanString = [dirtyString stringByTrimmingCharactersInSet:
                              [NSCharacterSet whitespaceAndNewlineCharacterSet]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a xml file that is online with the tag <version>1.0</verion> and more,
Hi i have parsed a online xml containing images, I got stuck on parsing
I have a lightweight online shopping site based on JSP and XML, and I'm
I have an XML file like this: <A> <B> <c>1<c/> <d>2<d/> <e>3<e/> </B> <B>
I have a XML file with some 25 elements. I just want to transform
I have an xml file, I want to open it, edit certain CDATA node
I have got a huge xml file (~ 85 Mo) and I would like
I have trouble loading an xml file stored on my local network... (you could
I have a huge xml file and i want to convert it to a
I wonder whether someone can help me please. I have the following xml file

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.