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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:44:59+00:00 2026-05-18T05:44:59+00:00

Is anybody famaliar with how to use TTXMLParser. I can’t find any documentation or

  • 0

Is anybody famaliar with how to use TTXMLParser. I can’t find any documentation or sample code on it.

Is it SAX or DOM?

Does it support Xpath?

Can I extract CDATA from elements?

I have an application that already uses several Three20 modules it would be a shame to have to use another parser.

  • 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-18T05:44:59+00:00Added an answer on May 18, 2026 at 5:44 am

    The main documentation I’ve found for TTXMLParser is in the header file. The comment there gives an overview of what TTXMLParser does.

    TTXMLParser shouldn’t really be thought of as an XML parser in the way you are thinking of it — in this sense, questions such as “is it SAX or DOM” and “does it support XPath” aren’t directly applicable. Instead, think of TTXMLParser as a convenience class to take XML and turn it into a tree of Objective-C objects. For example, this XML node:

    <myNode attr1="value1" attr2="value2" />
    

    would be turned into an Objective-C NSDictionary node which mapped the key “attr1” to the value “value1” and the key “attr2” to the key “value2”.

    TTXMLParser internally uses NSXMLParser (which is basically SAX) to build up its tree, but you, as the user of TTXMLParser, don’t have to do any SAX-like stuff.

    So, no, you will not end up with an XML document on which you can perform XPath queries. Instead, you will end up with an Objective-C tree of objects. If that’s what you want, great; if you want a traditional XML parser with XPath, I’m currently working on a project that uses both Three20 and TouchXML. TouchXML supports XPath.

    I agree it’s hard to find sample code for TTXMLParser. Three20’s TTTwitter sample used to use TTXMLParser (well actually, TTURLXMLResponse, which in turn uses TTURLParser), but at some point it was changed to use TTURLJSONResponse instead, which is a shame, because this was their only XML sample.

    You can still see the old XML-based sample code here. Specifically, look at the -[requestDidFinishLoad:] function near the bottom of the file, for an example of some code that takes a TTURLXMLResponse, queries its rootObject member, and then walks down the resulting tree of objects.

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

Sidebar

Related Questions

Can anybody recommend a pattern for unit-testing code within a Mathematica notebook ? I
Does anybody have a guide to this, containing code samples, tips and an outline
Anybody familiar with Sizzle? Is there support for selecting children of cached DOM nodes?
Anybody knows how to get nic card name when I do ipconfig/all I can
anybody know how can I replace \ by \\ ? input string : Télephone
Anybody know of a way to batch NHibernate queries using NHibernate.Linq like you can
Anybody have any ideas? The situation is like this: I have a primary rails
Ok anybody familiar with building your own custom jQuery selection from DOM nodes or
Does anybody know how to get access to the template's body inside the page?
Is anybody familiar with Worldviz-Vizard's 3D engine for python? How does it compare to

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.