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:

109 questions
0
votes
1 answer

Memory Leak in TouchMXL?

I'm using TouchXML to parse an XML-stream the following way: CXMLDocument *parser = [[CXMLDocument alloc] initWithXMLString:responseString options:0 error:nil]; [responseString release]; // array holding all the nodes NSArray *directionNodes =…
swalkner
  • 16,679
  • 31
  • 123
  • 210
0
votes
1 answer

TouchXML elementsForName Not Working

I have a div element in TouchXML, and I know for a fact that it contains an a element which I need to access. This is the element, which is declared as CXMLElement *element in a for-in loop
Chris Loonam
  • 5,735
  • 6
  • 41
  • 63
0
votes
1 answer

XML answer problem

I tried to read the response data from google weather api, but german umlauts aren't shown correctly. Instead of "ö" I get "^". I think the problem are those two lines of code: CXMLElement *resultElement = [nodes objectAtIndex:0]; description =…
Pascal Bayer
  • 2,615
  • 8
  • 33
  • 51
0
votes
1 answer

TouchXML to read in twitter feed for iphone app

So I've managed to get the feed from twitter and am attempting to parse it... I only require the following fields from the feed: name, description, time_zone and created_at I am successfully pulling out name and description.. however time_zone and…
Fiona
  • 1,599
  • 5
  • 24
  • 38
0
votes
1 answer

Problem parsing a soap response (iphone / touchxml)

I make a webservice and it works, the problem is with the webservice response. I have this xml (and i want to parse with touchxml), the problem is with touchxml that it founds two xml, one inside the other and it make crash. Here is my question, how…
gerardpg
  • 1
  • 1
0
votes
1 answer

How to find attribute of root node in touch xml?

NSString *xml = @" 20141013_114857 "; In above…
RamGrg
  • 296
  • 1
  • 4
  • 20
0
votes
2 answers

TouchXML CXMLNode.m unrecognized selector when adding to NSMutableArray

I'm new to Objective C and XML, so this is going to look pretty rough. My code is as follows: #import "dbCommunicator.h" #import "BookInfo.h" #import "TouchXML.h" @implementation dbCommunicator -(void)getNextBooks { if(self.bookListing ==…
Aphrodisizach
  • 39
  • 1
  • 5
0
votes
1 answer

Objective C - Parse SOAP xml string by using touchXML

How to parse a soap xml by using touch XML this is soap xml string:
Tuyenp
  • 81
  • 1
  • 11
0
votes
1 answer

TouchXML - CXMLDocument object failed to initialize

I am stuck with some TouchXML code. Please help. I have the following code to get the data from an xml webservice: NSData *urlData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; NSString *data =…
Hoang Pham
  • 6,899
  • 11
  • 57
  • 70
0
votes
1 answer

parse xml using touch xml

i am new to xml and want to parse it by using touch xml. 10108 SPEICALS
Noor
  • 2,071
  • 19
  • 28
0
votes
2 answers

Parsing multiple and multi-level nested elements with TouchXML

I have an XML with the following structure and I am trying to create my model object from this. Can someone please help me find a way to get these objects from the XML using TouchXML, NSMutableArray and NSMutableDictionay.
Mithin
  • 961
  • 1
  • 11
  • 37
0
votes
1 answer

nodesForXPath returning 0 objects

I have problems parsing elements from a XML String to an Array with TouchXML. I've succesfully made an CXMLDocument object with: CXMLDocument *doc = [[CXMLDocument alloc] initWithXMLString:responseString options:0 error:&error]; I'm now trying…
Madoc
  • 1,605
  • 3
  • 17
  • 30
0
votes
1 answer

Objective C memory management - "pointer being freed was not allocated" errors

I'm trying to learn objective-c (I'm very new to that) and I have issues with memory management... I'm developing an iPad app that uses TouchXML. I've created my class that extends CXMLDocument and does some initialisation by reading some contents…
lviggiani
  • 5,824
  • 12
  • 56
  • 89
0
votes
1 answer

IOS Encoding ISO-8859-9

I need to get contents of an XML file which is hosted on web, and parse it. I decided to use TouchXML for parsing process. However, I cannot get contents of the file since it is encoded with ISO-8859-9 XML File Url:…
SadullahCeran
  • 2,425
  • 4
  • 20
  • 34
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
  • 742
  • 1
  • 11
  • 33