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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:53:37+00:00 2026-05-24T11:53:37+00:00

I have problems regarding the output of the XMLReader , which should be able

  • 0

I have problems regarding the output of the XMLReader , which should be able to parse any SOAP-Result into an NSDictionary.

When I go through the results I get the following:

Key: soapEnvelope, Value: {the rest of the xml-file to the end, with all tags, but it seems to be a long string}

What am I doing wrong here since I expected to get a NSDictionary with all of my XML-Tags as a key?

Edit: Since I´m working and trying to understand this since days, I may be totally in the wrong direction, so if possible… here´s my XML:

 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
    <GetData2Response xmlns="http://tempuri.org/">
        <GetData2Result>
            <NoOfObjectsDetected>1</NoOfObjectsDetected>
            <RectanglesForPicture>
                <Rectangle>
                    <Location>
                        <X>90</X>
                        <Y>14</Y>
                    </Location>
                    <Size>
                        <Width>352</Width>
                        <Height>352</Height>
                    </Size>
                    <X>90</X>
                    <Y>14</Y>
                    <Width>352</Width>
                    <Height>352</Height>
                </Rectangle>
            </RectanglesForPicture>
            <ReturnMessage>Juhu!</ReturnMessage>
        </GetData2Result>
    </GetData2Response>
</soap:Body>

When I want to have Lets say NoOfObjectsDetected in an int – what exactly do I have to do? (It´s stupid, I know… but I´m lost atm… thx)

  • 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-24T11:53:37+00:00Added an answer on May 24, 2026 at 11:53 am

    are u parsing with the help of NSXMLParser?? here is the method. create an mutable array to store the contents of xml. in the delegate methods do the following:

    nsmutablearray noOfObjetcsArray;
    nsstring elementNameStr;

    -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI
    qualifiedName:(NSString *)qName attributes:(NSDictionary *)atributeDict

    {

    if ([elementName isEqualToString:@”NoOfObjectsDetected”])

    {

    noOfObjetcsArray =[nsmutablearray alloc] initwithcapacity:0];

    elementNameStr = elementName;

    }

    }

    -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string

    {

    if ([elementNameStr isEqualToString:@”NoOfObjectsDetected”])

    {

     [noOfObjetcsArray addObject:string];
    

    }

    }


    when parsing is complete u will get the contents in the array. since u want it as an int value, wherever u use this value jus give:

    [[noOfObjetcsArray objectAtIndex:0] intValue]

    this will convert string to int value. thats the way u can get teh value. try it.

    all the best 🙂

    }

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

Sidebar

Related Questions

Want to show nicely formatted output regarding bandwidth speed during download I have this
I have this problem regarding sql which i will be using in a webservice
Have some strange behaviour regarding output caching in an ASP.NET 4 application on IIS
I facing a problem regarding the import of an excel file into mysql through
I have 2 questions to ask regarding opening files (any kind of files) using
I have a program which is calling another program and processing the child's output,
I have a problem regarding getting the path of a user control. The scenario
I have a problem regarding StartUp Url in WPF. I have a LoginView.xaml and
I have a problem regarding the datediff MYSQL function, I can use it and
I have a question regarding a problem with L2S, Autogenerated DataContext and the use

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.