Questions tagged [tbxml]

TBXML is a light-weight XML document parser written in Objective-C designed for use on Apple iPad, iPhone & iPod Touch devices.

TBXML is a light-weight XML document parser written in Objective-C designed for use on Apple iPad, iPhone & iPod Touch devices. TBXML aims to provide the fastest possible XML parsing whilst utilising the fewest resources. This requirement for absolute efficiency is achieved at the expense of XML validation and modification. It is not possible to modify and generate valid XML from a TBXML object and no validation is performed whatsoever whilst importing and parsing an XML document.

Visit the TBXML website to learn more.

86 questions
1
vote
1 answer

TBXML doesn't parse tag with special character as value

I'm trying to parse an XML using TBXML and everything is going fine except for tags which contain special characters in their value. For example, consider the XML element sources/data I'm trying to get the text sources/data from this…
Aneesh
  • 1,703
  • 3
  • 24
  • 34
1
vote
1 answer

TBXML and child elements

I know there are lot of questions regarding TBXML out there and I have tried few of the solutions but nothing is working for me. I am new to this stuff.
dogwasstar
  • 852
  • 3
  • 16
  • 31
1
vote
2 answers

Updated guide for TBXML: How to include TBXML in Xcode 5, for iOS 7

I'm having problems including TBXML in my project. The guide tells me to include four files, TBXML.h, TBXML.m, NSDataAdditions.h, and NSDataAdditions.m, but the latter two are nowhere to be found in the Github repo. I tried running the sample…
Matthew Quiros
  • 13,385
  • 12
  • 87
  • 132
1
vote
2 answers

How to Decode HTML Entities (“ ” and " £") from string in xcode

in xml data is SAT 17TH TEST test club cheap drinks £3 shots £5 bottles $beers i get this string using this code TBXMLElement *Content_Special=[TBXML childElementNamed:@"content_special"…
Chirag Dj
  • 630
  • 2
  • 9
  • 27
1
vote
1 answer

NSMutableArray doesn't get XML values

I am trying to parse an XML file with TBXML and put the values into a multidimensional NSMutableArray but the problem is that the values don't get added into the array, if I output the values then it returns null and 0. This is my code: -…
Code Guru
  • 393
  • 5
  • 15
1
vote
1 answer

using AFNetworking's AFXMLRequestOperation with tbxml

How do i use the AFNetworking's AFXMLRequestOperation and parse the data using TBXML instead of the default NSXMLParser...looks like the alternate method XMLDocumentRequestOperationWithRequest will not work in iOS (as NSXMLDocument is not supported)
gforg
  • 263
  • 1
  • 4
  • 19
1
vote
1 answer

Parsing with TBXML

So I am having an issue finding an undefined element in an element of an XML file. I am able to parse to the element "item"... 14459 Now…
jsetting32
  • 1,632
  • 2
  • 20
  • 45
1
vote
1 answer

How to get the Arabic text using TBXML parser?

I have Arabic text in XML as shown below. Code: NSString *theXML = [[NSString alloc] initWithBytes: [webData mutableBytes] //webData has received data length:[webData length] …
K'am
  • 129
  • 1
  • 7
1
vote
1 answer

Forward declare structs in Objective C

I'm writing an iOS app in which I have a model class that is going to initialize itself with an XMLElement I give to it. I'm using TBXML for the XML part. The header for the model class looks like this: @interface CatalogItem :…
Josh Elias
  • 3,250
  • 7
  • 42
  • 73
1
vote
1 answer

TBXML textForElement dont parse one element

I always get null for this element:
Rua Santo Ubaldo, 28 - São Paulo
the xml File: 1 Woods Bar Sofisticação,…
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
1
vote
1 answer

TBXML textForElement issue

I'm trying to parser an HTML with the TBXML library for iOS and I want to obtain the "more text" value for this piece of HTML:
value more text
I have used this code, but it does not seems…
fcortes
  • 1,338
  • 3
  • 11
  • 26
1
vote
1 answer

TBXML not updating file

I use TBXML to download a .xml file from the web. I parse the file correctly and I get all the data I want as I want it. My problem is that I updated the file on the server, and it did not update in the app. It only updated the file when I deleted…
rdurand
  • 7,342
  • 3
  • 39
  • 72
1
vote
1 answer

XML parsing Using TBXML need to handle Network Time out in IOS?

Currently parsing remote content straightly using TBXML by initwithURL method. But while parsing data if network time out occurs parsing stopped intermediately. Don`t know how to handle that scenario , at the same time no delegate will call. If any…
Karthi
  • 13,624
  • 10
  • 53
  • 76
1
vote
3 answers

How to use UIActivityIndicatorView with XML loading?

I have a view where I get some content from a XML file with TBXML parser when I click a button. It looks like this in the clicked button method : // Should be [activityIndicator startAnimating]; NSURL *url = [NSURL…
Damian Nils
  • 81
  • 1
  • 10
1
vote
1 answer

iphone TBXML xml parsing

I'm using TBXML in my iphone application. I have an xml like the next one: My title subCategory1 subCategory2 subCategory3 I can…
Panos
  • 7,227
  • 13
  • 60
  • 95