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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:51:27+00:00 2026-05-26T19:51:27+00:00

I am making an iOS app where I’m using the GDataXML library for xml

  • 0

I am making an iOS app where I’m using the GDataXML library for xml parsing in Objective C.

I have the following xml (that I get as an soap response):

<?xml version="1.0" encoding="utf-8"?>
  <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>
      <MakeRequestResponse xmlns="http://tempuri.org/">
        <MakeRequestResult>SOMERANDOMDATAHERE012912033905345346</MakeRequestResult>
      </MakeRequestResponse>
    </soap:Body>
  </soap:Envelope>

The problem I have is:

when I write the xpath expression for the given xml like this I get the MakeRequestResponse node:

NSArray *listOfNodes = [[responseDocument rootElement] nodesForXPath:@"soap:Body/*" error:&error];

However I’m unable to get this node or any children below when I write the actual node name:

NSArray *listOfNodes = [[responseDocument rootElement] nodesForXPath:@"soap:Body/MakeRequestResponse" error:&error];

I’m not sure what is the issue here. Could it be an namespace related issue?

  • 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-26T19:51:28+00:00Added an answer on May 26, 2026 at 7:51 pm

    This is a FAQ (search for XPath and default namespace).

    The short answer is that when an XPath expression is evaluated, any unprefixed names are assumed to be in “no namespace”. But MakeRequestResponse is not in “no namespace” and thus isn’t selected.

    Solution:

    Either register the "http://tempuri.org/" namespace and associate a prefix (say "x:") to it, then use:

    soap:Body/x:MakeRequestResponse
    

    Or, otherwise you can have an expression like this:

    soap:Body/*[name() = 'MakeRequestResponse']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a graph for my iOS app, using the Core Plot library However
I'm making an iOS app which is OpenFeint enabled. I have managed to get
I am working on an iOS 5 app. I have a view controller that
So I'm making an iOS app that constantly sends and array of points through
I am tasked with making an app that works in iOS 4.0 work in
I'm using the ASIHTTPRequest lib in my iOS app for making REST requests to
I'm thinking in making an app that send e-mails without showing the native iOS
Im making on an ios app and currently working to get cell deletion from
I'm making an iOS app that sends a username string to this PHP file
So my intention is to have a login in my iOS app that allows

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.