Questions tagged [touchxml]

TouchXML is a lightweight replacement for Cocoa's NSXML* cluster of classes. It is based on the commonly available open source libxml2 library.

TouchXML is a lightweight replacement for Cocoa's NSXML* cluster of classes. It is based on the commonly available open source libxml2 library.

References:

110 questions
0
votes
1 answer

Using TouchXML how can I count tags that starts with specific texts

Suppose I have an XML file that has tags Reg0, Reg1, Reg2. . . The "Reg" prefix is fixed. How can I count the number of tags that starts with Reg text using TouchXML? I can search for Reg text in my whole document, but may be this is not the right…
sumon
  • 732
  • 1
  • 11
  • 32
0
votes
1 answer

Assertion failure error

I am making a dynamic library for iPhone (for Cydia) and am trying to use TouchXML to parse XML. When I call this method +(NSArray *)initWithXMLfromData:(NSData *)data withRootElement:(NSString *)rootElement{ NSError *err; CXMLDocument *parser =…
Chris Loonam
  • 5,635
  • 6
  • 40
  • 61
0
votes
1 answer

iOS CXMLElement StringValue

I'm trying to parse an xml here and am getting my CXMLElement properly. One, for example, logs this Tracked> but I can't get the string value, in this case Tracked. I've…
Chris Loonam
  • 5,635
  • 6
  • 40
  • 61
0
votes
1 answer

reading complex soap response, having IDs and IDREFs nodes with Sudzc [iOS]

I have problem with parsing soap response using Sudzc (ARC branch). I have some WCF service which stores data for our apps. I managed to connect to web service I can get response successfully, however I got stuck when one of responses came with…
cbr
  • 1
  • 2
0
votes
1 answer

Memory crash using [CXMLNode nodesForXPath] with namespace mappings

I'm trying to parse some XML in objective-c, using the TouchXML library. The XML has a namespace in the root element, so I'm using the method in the TouchXML library on the CXMLNode object like: - (NSArray *)nodesForXPath:(NSString *)xpath…
Mick Byrne
  • 13,717
  • 14
  • 68
  • 84
0
votes
1 answer

iOS not updating label text

I'm parsing xml here and am wondering why this is not working. In my request object, I do this - (Request *)performRequest{ NSError *error; CXMLDocument *parser = [[CXMLDocument alloc]initWithContentsOfURL:[NSURL…
Chris Loonam
  • 5,635
  • 6
  • 40
  • 61
0
votes
1 answer

Creating Xpath Query Dynamically using Touchxml and xcode

I'm new to touchxml and xpath and i just want to know if is there any way to get an attribute of a node dynamically? I have this xml
0
votes
2 answers

Getting duplicate children in TouchXML

I have a CXMLDocument and the problem is that when I do this: for (CXMLElement* auxitem in [doc children]){ NSLog(@"NAME: %@", auxitem); } It gives me an empty CXMLNode and the CXMLElement with the information I want, like this: 2013-01-25…
Sergiodiaz53
  • 1,126
  • 2
  • 13
  • 22
0
votes
0 answers

Parsing XML with TouchXML, generating docs with children

I'm getting an XML document like this:
Sergiodiaz53
  • 1,126
  • 2
  • 13
  • 22
0
votes
1 answer

Getting null back from XML, but only on wi-fi only devices

I have an app that incorporates weather...data that I receive from Google's weather API. I'm busting my brain trying to figure out a problem that I'm having and I've been unsuccessful so I figured it was time to ask around on here. Here is my…
Donavon Yelton
  • 1,197
  • 3
  • 14
  • 23
0
votes
1 answer

Parse youtube api feed v2

I'm trying to parse a YouTube feed provided by the YouTube data API. This feed lists all videos uploaded by a specific user, like this one: https://gdata.youtube.com/feeds/api/users/google/uploads?v=2 I'm using touchXML in my iOS app. I've tried to…
Jim
  • 31
  • 2
0
votes
1 answer

NSRangeException for empty array except there is an array?

I'm having this problem where I keep getting this error in my console: * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array' Here is my code for retrieving…
sridvijay
  • 1,486
  • 17
  • 39
0
votes
2 answers

SudzC workaround for SOAPRequest to deserialize into NSMutableArray of custom objects

This is my SoapRequest: SoapRequest* _request = [SoapRequest create: _target action: _action service: self soapAction: @"" postData: _envelope deserializeTo: /*[[DMDDmdInfo alloc] autorelease]*/ [NSMutableArray array]]; I should receive…
Oleg Danu
  • 4,010
  • 4
  • 26
  • 45
0
votes
1 answer

iOS: TouchXML xmlReadMemory VS xmlParseMemory

I tried to use 2 different implementations of TouchXML, one provided with SudzC and the other from TouchXML github repo. There is a little difference between them, consisting in the initialization of the CXMLDocument: GitHub: CFStringEncoding cfenc…
Oleg Danu
  • 4,010
  • 4
  • 26
  • 45
0
votes
1 answer

Parsing documents including angle brackets using TouchXML on iOS

I'm trying to parse an XML document using TouchXML for iOS. Normally this works great, but the current document I'm trying to parse contains angle brackets within the actual data. For example: Title < 5 This…
Ben Williams
  • 4,617
  • 7
  • 45
  • 72