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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:43:31+00:00 2026-06-10T09:43:31+00:00

This question is for manipulating NSString in xcode. I have a XML text string

  • 0

This question is for manipulating NSString in xcode.

I have a XML text string that I get from the web that looks like this

<current temperature="73" day="Mon" humidity="59" windspeed="10"></current>

How can I get individual values from this string and put them in my NSString variables?

e.g.

NSString *tempStr = ??
NSString *dayStr = ??
NSString *windspeedStr = ??
  • 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-06-10T09:43:33+00:00Added an answer on June 10, 2026 at 9:43 am

    First, download and include RaptureXML within your project as described on the RaptureXML project site.

    For parsing the single given line, use the following snippet – your input is passed as inXmlString;

    //transform string into an XML DOM
    RXMLElement *rootNode = [RXMLElement elementFromXMLString:inXmlString 
                                                 withEncoding:NSUTF8StringEncoding];
    if (rootNode == nil || ![rootNode isValid])
    {
        //do something, we failed!
    }
    else 
    {
        NSString *temperature = [rootNode attribute:@"temperature"];
        NSString *day = [rootNode attribute:@"day"];
        NSString *windspeed = [rootNode attribute:@"windspeed"];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A daft question, but I really cannot get this to work: I have some
This question is related to another question I wrote: Trouble using DOTNET from PHP.
This question came up from what I see on a clients side: Intermittent Connection
I'm pulling data from an XML feed and manipulating it using the awesome SimpleXMLElement.
I would like to create application with ribbon interface that looks and behaves like
How can you get many tags for a question effectively from Postgres database by
This question is about Blogger Template manipulation . People developing/changing or manipulating Blogger templates
I know this is a very basic question. I am new to web programming.Im
We have a list of (let's say 50) reports that get dumped into various
I have this code where I am using two javascript functions that do some

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.