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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:49:18+00:00 2026-06-18T04:49:18+00:00

I have a CXMLDocument and the problem is that when I do this: for

  • 0

I have a CXMLDocument and the problem is that when I do this:

for (CXMLElement* auxitem in [doc children]){
    NSLog(@"NAME: %@", auxitem);
}

It gives me an empty CXMLNode and the CXMLElement with the information I want, like this:

2013-01-25 19:12:58.607 ClienteF[2438:c07] NAME: <CXMLNode 0x72ba5f0 [0x72ba900] text>
2013-01-25 19:12:58.607 ClienteF[2438:c07] NAME: <CXMLElement 0x72ba640 [0x72ba950] node        <node label="NAME" description="DESCRIPTION" id="1"> 

I only want to get the CXMLElement because it’s the one with the information. How can I discard the CXMLNode? Of course I thought about get only the even numbers of the for but I’m looking for other alternative.

Thanks.

  • 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-18T04:49:19+00:00Added an answer on June 18, 2026 at 4:49 am

    I have done this:

    for (CXMLElement* auxitem in [doc children]){
        if([[auxitem localName] isEqualToString:@"node"]){
            NSLog(@"NAME: %@", auxitem);
        }
    }
    

    Maybe it isn’t the best solution but It works. Any idea more will be great.

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

Sidebar

Related Questions

The problem that I have is this: I have a lot of XSD files
My problem is like this. I have a XMLUtility class public class XmlUtility {
I have a XML file like this: <Document> <Tests> <Test> <Name>A</Name> <Value>1</Value> </Test> <Test>
I have a problem when using simplexml to read a xml document that I
I have one problem. I have to serialize an object and that sam object
I have a BizTalk schema that looks something like this: <Root> <Header> <SomeData></SomeData> <Detail>
This is my first post and I have am concerned that some might think
I have a problem. I have an XML spreadsheet file that I'm trying to
I have this problem in my application: Step 1 - create an file (xml)
This the scenario have. There's an SSRS server that has a report where the

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.