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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:19:28+00:00 2026-06-13T17:19:28+00:00

1 . Im doing XML parsing from a url.IN the XML response , how

  • 0

1 . Im doing XML parsing from a url.IN the XML response , how can I get the length of element tag ..
Eg :

<Company>
   <Id>1</Id>
   <name>A</name>
</Company>
<Company>
   <Id>2</Id>
   <name>B</name>
</Company>

IN this how can I get the no of ‘Company’ tags i.e 2

—> I got some GUID value in array when parsing XML and I am taking it in a string variable.But when I compare a particular value with the string variable it is not getting compared..Couldnot get where im going wrong ?
My array is

(
{
Id="84a6c6f6-b018-4f0e-8da4-c64bf76be764"
}
)

now Im taking it in string variable like this :

nam=[[arr objectAtIndex:0]objectForKey:@"Id"]; 

But if the result of arr is
(
{
Id=”00000000-0000-0000-0000-000000000000″
}
)

and if I compare

if(nam=@"00000000-0000-0000-0000-000000000000")
{
   //do something

}

But here my cursor is not going to if stmnt if though Id is 00000000-0000-0000-0000-000000000000..How can i compare it ?

  • 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-13T17:19:30+00:00Added an answer on June 13, 2026 at 5:19 pm

    It is easy if you the name of tag, as while parsing, in a function “didStartElement” you can do so

    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict
    {
        if([elementName isEqualToString:@"Company"])
            companyCount++;
    }
    

    Please let me know if that works for you

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

Sidebar

Related Questions

I'm having some problems with parsing the xml response from my ajax script. The
I am doing parsing on xml file and fetched data from xml file and
I have been doing some XML parsing in my application. I used the following
I seem to be getting back a well-formed XML document from this cURL, but
I am trying to retrieve content from xml tagnames from a url, but my
I am currently parsing some xml that looks like this <Rows> <Row MANUFACTURERID=76 MANUFACTURERNAME=Fondont
I am parsing an xml using DOM Parser. I get a doc and then
I need to do some parsing and information retrieval from XML documents. The XML
I am parsing a series of XML responses from a external data store. During
I'm writing a Java GUI application that is doing some XML parsing and analysis.

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.