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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:27:02+00:00 2026-06-06T23:27:02+00:00

No trouble reading and loading, but I’m not sure about the syntax to grab

  • 0

No trouble reading and loading, but I’m not sure about the syntax to grab a string from a particular location.

For example, with this XML…

<stories>
  <story ID="01" name="Story 1">
    <scenes>
      <scene ID="01" name="Scene 1">
        <pages>
          <page ID="01">
            <charName>
              n010101
            </charName>
            <charTalk>
              s010101
            </charTalk>
          </page>
        </pages>
      </scene>
    </scenes>
  </story>
</stories>

How would I say…
“from charName in page with ID 01 in pages in scene with ID 01 in scenes in story with ID 01 in stories”

As a path, it would be something like:
stories > story 01 > scenes > scene 01 > pages > page 01 > charName

I’ve looked at other projects that implement TBXML, but I can’t find what I’m looking for.
(I’m also really bad at looking through others’ source code, so I’ve probably come across it more than once.)

My loadStories method on Pastebin

Edit: I wonder… Which is faster, TBXML or a plist, and which is easier to code for?
They’re both loaded fully into memory, so it comes down to line count, readability, and parse time.

…
Still waiting on an answer. I don’t mind switching to NSXMLParser if someone can throw a good (useful) tutorial at me, but TBXML is much lighter, even if it does have a slightly larger footprint with huge files.
How much does it take for TBXML to become heavy, anyway?

  • 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-06T23:27:03+00:00Added an answer on June 6, 2026 at 11:27 pm

    XML has a ridiculous amount of overhead, which can get horribly inefficient in no time at all.

    Property lists are easy enough to deal with, and it’s not hard to convert the contents to raw data.
    NSJSON is not the absolute fastest, but it supports ARC and is much simpler to implement.


    Yes, I know I didn’t actually solve the problem. This answer is for an easier, significantly better solution.

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

Sidebar

Related Questions

Im having trouble reading from a CSV file final String DELIMITER = ,; Scanner
I'm having some trouble reading data from a file into a vector of Orders.
I'm having trouble reading dark blue on black when I turn on syntax colours
I'm having trouble opening a file for reading, but only when it is inside
Firs of all thanks for reading this. I'm having trouble updating the progress from
I'm having trouble reading properties from JSON within NodeJS. Feels like an obvious mistake
I'm having trouble reading rows with float values, because these rows return for example
I'm having some trouble reading files with Indy from a site that has WordPress
I seem to be having trouble reading preferences from my AppWidgetProvider class. My code
I'm having trouble reading output from dr racket. By default it displays lists using

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.