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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:58:30+00:00 2026-06-03T04:58:30+00:00

If I have this external XML file: <drivers> <folder> <name>Adobe</name> <driver> <name>acrobat distiller 3.0</name>

  • 0

If I have this external XML file:

<drivers>
                <folder>
                    <name>Adobe</name>
                    <driver>
                        <name>acrobat distiller 3.0</name>
                        <filename>ADISTILL.PPD</filename>
                    </driver>
                    <driver>
                        <name>adobe laserjet ii cartridge</name>
                    <filename>ALJII523.PPD</filename>
                </driver>
                <driver>
                    <name>generic postscript printer</name>
                    <filename>defprtr2.ppd</filename>
                </driver>
            </folder>
</drivers>

Say I want to get the contents of “Adobe” and put them in an array, how would I do it?

I have the following, which gives me an array of “< name >” however, I don’t know what the next step it.

NSString *item_name = [NSString stringWithFormat:@".//drivers/folder/name"];
NSArray *arr = [ads_xml nodesForXPath:item_name error:NULL];

ads_xml is an NSXMLDocument type.

Thanks!

P.S. Specifically I want the < name > and < filename > found under the < driver > node.. Cheers

  • 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-03T04:58:32+00:00Added an answer on June 3, 2026 at 4:58 am

    I found the solution myself, which can be done in a number of different ways.
    I can create array for all the names, using XPath and another array for the filename, and store the data in array variables that way.

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

Sidebar

Related Questions

i have this simple type from an external webservice: <xsd:element name=card_number maxOccurs=1 minOccurs=1> <xsd:simpleType>
I have this servlet program and an external .jar file (written by someone else)
I have a list of countries in this format in an external file: <?
I currently have an iPhone app that reads data from an external XML file
I have to load XML from external domain, so my code looks like this
The setup: I have an external XML file I have no control over, here
I wanna know if this is possible. I have an external .css file in
I have a script that loads info from external XML file and inserts it
I have an xml file, currently external to the C# code and it is
I have an external xml file that I am loading in my views.py file

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.