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
0
votes
1 answer

Make sure data is coming from XML sheet using TBXML parser

Longtime stackoverflow user,first time asker. I am newer to iOS development. I am working on a project where I need to bring in the data from an XML sheet, for this I have chosen the TBXML parser to use. My problem resides in bringing the data into…
jsmceo
  • 3
  • 1
0
votes
1 answer

Use TBXML to grab an unknown number of elements

My question is: How do I extract an unknown number of XML elements with a predictable element name and grab their attribute values? I'm using TBXML (love it so far) to parse weather observation data from the national weather service. Here is an…
Chris Holloway
  • 247
  • 3
  • 10
0
votes
1 answer

TBXML with NSData in Xcode

I have a URL that returns a pretty flat XML file: val1Bob The code runs ok: NSString *urlString = [NSString stringWithFormat:@"http://www.somesite.php?qid=%d", __inum]; NSLog(@"urlString = %@",…
user3741598
  • 297
  • 1
  • 12
0
votes
2 answers

Easy XML-Parser for iOS - Objective C

I'm looking for the most "easy-to-implement" method to parse XMLs in Objective-C mobile applications. I tried to use TBXML but I'm a newbie and I got several errors with that...do you think there's something easier out there? Thanks
Sara Canducci
  • 6,231
  • 5
  • 19
  • 24
0
votes
0 answers

How to synchronize when parser XML using TBXML in iOS?

I have a problem: when I call parser xml using TBXML in setCompletionBlockWithSuccess of Afnetworking, my tableview is reloaded frequently and it can not stop. ... AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc]…
user3214941
  • 387
  • 1
  • 9
  • 17
0
votes
1 answer

Objective-C: Convert TBXML element to NSString

The problem is, that I get a TBXML element back from initWithURL method of TBXML class. I'd like to save this TBXML document as it is, in order to parse it afterwards, when the user is offline as well, but I can't seem to find a method to get the…
ChillY
  • 106
  • 6
0
votes
2 answers

Encoding ISO 8859-1 to display Spanish text correctly in UITableview

I am facing problem in converting the Spanish text that is fetched from the service in correct format. Server side they are encoding with ISO-8859-1. It is a xml service. In my iOS7 app, I am using TBXml parser to parse the data. The code…
Raju goud Bingi
  • 160
  • 2
  • 13
0
votes
1 answer

Is NSError reusable in TBXML?

Hi I have a parser which tests for possible errors such as D_TBXML_ELEMENT_TEXT_IS_NIL. If obj1 is nil and obj2 has text (NSError *) error still returns a non 0 value. Is there any way to clear the previous value other than re-assigning a 0…
Sonny G
  • 1,331
  • 1
  • 12
  • 22
0
votes
1 answer

TBXML not parsing TBXMLElement text, while child element tags also present in existing parent tag?

My XML is like this: NOIDA OFFICE: B-20, SECTOR 57 NOIDA (U.P) 201301 And I am trying to parse with TBXML parser. Here my problem is, OfficeAddress value is accessible…
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
0
votes
1 answer

ios SOAP response is not in XML format

I am developing an application in which I am consuming SOAP response using TBXML parser. But the issue I am facing is that the SOAP response in not coming in proper XML format. Following is the SOAP response that I am receiving:
Shital Tiwari
  • 175
  • 2
  • 3
  • 17
0
votes
1 answer

TBXML parsing value of attribute named

I have this xml: For parsing it I use…
rubik
  • 572
  • 4
  • 15
0
votes
0 answers

iOS TBXML when should I add my object in my array?

I'm building an object "Position" with the result of the XML extractions, it parses well but I can't figure out when to add this object in an array. I want the object to be added after the following elements are extracted I'm doing this: - (void)…
Romain
  • 151
  • 1
  • 12
0
votes
0 answers

Trouble with objects iOS

I'm having trouble doing a simple things in iOS. I'm parsing an XML and I want to populate an object with the data I retrieve. do { TBXMLAttribute * attribute = element->firstAttribute; while (attribute) { Position *position =…
Romain
  • 151
  • 1
  • 12
0
votes
1 answer

Loading NSDictionary parsing xml file

I've been stuck a little on this problem. Here is the situation : I'm parsing an xml file with positions, I parse it well, thing is I want to put the different elements into an NSDictionary (one NSDictionary for each position) and those…
Romain
  • 151
  • 1
  • 12
0
votes
1 answer

Trouble parsing XML with TBXML

I'm having difficulties parsing this xml with TBXML in iOS : 168 I want to extract the "168" but I only achieve to extract the…
Romain
  • 151
  • 1
  • 12