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

  • Home
  • SEARCH
  • 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 8227459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:08:06+00:00 2026-06-07T16:08:06+00:00

I need to get the value of the following xml , I am using

  • 0

I need to get the value of the following xml , I am using NSXML parser for parsing this

<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

I need to get the “true ” value from the above xml .

What should I do inside the NSXML parser delegate methods?

  • 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-07T16:08:07+00:00Added an answer on June 7, 2026 at 4:08 pm
    #import "XMLParser.h"
    
    @implementation XMLParser
    
    - (NSString *)parseXMLFile: (NSURL *) url
    {   
        outstring = [[NSMutableString alloc] init];
    
            NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL: url];
    
            [parser setDelegate: self];
        [parser parse];
            [parser release];
    
        return [outstring autorelease];
    }
    
    //<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>
    
    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName 
                                                  namespaceURI:(NSString *)namespaceURI 
                              qualifiedName:(NSString *)qName 
                              attributes:(NSDictionary *)attributeDict   
    {
            if (qName) elementName = qName;
        if (elementName) current = [NSString stringWithString:elementName];
    }
    
    - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName 
                             namespaceURI:(NSString *)namespaceURI 
                             qualifiedName:(NSString *)qName
    {
        current = nil;
    }
    
    - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
    {
        if (!current) return;
        if ([current isEqualToString:@"boolean"]) 
            [outstring appendFormat:@"%@\n", string];
    }
    
    //  <boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>
    
    
    -(void) parserDidStartDocument:(NSXMLParser *)parser {
        NSLog(@"parserDidStartDocument");   
    }
    
    -(void) parserDidEndDocument: (NSXMLParser *)parser {
        NSLog(@"parserDidEndDocument %@", outstring);   
    }
    @end
    

    For more detail regarding the nsxml parse Reference site here.

    this may more help to you.

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

Sidebar

Related Questions

For example i have this xml. I need to get value of parameter val
I need to get the value 3 from the below xml file using groovy
I have the following xml that I need to get 2 values (see *
I need to get a value from another page. But I get this error
I need to deserialize the following XML into a C# class: <NodeConfiguration> <DBChange value=2022/>
I need to get key/value pairs from XML to populate member info on a
I need to send a HTTP request (and get XML response) from Flash that
I am using following code to get List from xml file - public static
I have the following in xslt <?xml version=1.0 encoding=UTF-8?> <xsl:stylesheet version=2.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:xs=http://www.w3.org/2001/XMLSchema xmlns:fn=http://www.w3.org/2005/02/xpath-functions
I need to have following attribute value in my XML node: CommandLine=copy $(TargetPath) ..\..\&#x0D;&#x0A;echo

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.