Questions tagged [nsxml]

NSXML is Apple's Objective C API for doing tree-based XML document parsing and construction.

74 questions
1
vote
1 answer

iOS NSXML dictionary not adding to array

I have an instance of the NSXML Parser parsing some xml and storing it in an array of objects. The XML has some image URLS and titles that I am trying to add to a dictionary, and then add the dictionary to an array in the data object. The dictionary…
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
1
vote
1 answer

NSXML Parser parsing node by node

I have an XML like this,
Harish
  • 2,496
  • 4
  • 24
  • 48
1
vote
1 answer

NSMutableArray only has copies of the last object

I am using NSXML to parse out an XML document and add the results to an array of objects. The array has the correct number of objects, but they are full of data from the last object.(i.e. the object at index 0 has the same data as at index 3). I am…
Nate
  • 75
  • 9
1
vote
1 answer

Getting Attribute information out of NSXMLDocument Nodes

I have been hitting my head into the wall for a few days now trying to figure out how to parse this xml document in cocoa and objective C. I have loaded it into NSXMLDocument, and have been able to get the Nodes.
1
vote
1 answer

NSXMLParser issue : don't get all data?

I'm developing an application that needs to get data from an XML file. Some of the nodes have a lot of characters and I've a problem using this function : - (void) parser:(NSXMLParser *)parser foundCharacters:(NSString *)string { …
Rob
  • 15,732
  • 22
  • 69
  • 107
1
vote
1 answer

Cocoa - Writing NSXMLElement In NSXMLDocument

I am creating an NSXMLDocument, from which I get a file defined in a constant USER_PRINTXML_URL, as follows: NSXMLDocument *ads_user_printxml = [[NSXMLDocument alloc] initWithContentsOfURL: [NSURL URLWithString:USER_PRINTXML_URL] …
Kevin
  • 1,469
  • 2
  • 19
  • 28
1
vote
1 answer

NSXML searching in Cocoa

If I have this external XML file: Adobe acrobat distiller 3.0
Kevin
  • 1,469
  • 2
  • 19
  • 28
1
vote
0 answers

nsarraycontroller and bindings: how to debug?

I have an NSXMLNode containing a series of child node and I would like to show the attribute of those child nodes in an NSTableView using NSArrayController and bindings. I'm new to NSArrayControllers and bindings so I decided to start by populating…
Jacopo
  • 1,031
  • 2
  • 12
  • 25
0
votes
1 answer

Quotations marks lost when saving xml with GDataXml

I have a xml file like this: anIntegerValue So I parse this with NSXMLParser like this: In didStartElement I have something like: if…
martskins
  • 2,920
  • 4
  • 26
  • 52
0
votes
1 answer

nsxml works but not with my service

hi iam writing a client server iphone application and i use nsxml to read xml feed from a website ..and before i wrote the php service i tried it with a rss from another site...and it worked fine. yet after i wrote the service it kept giving me the…
0
votes
1 answer

Maximum length of [NSXMLNode stringValue]

I have an XML document which contains an element that is over 90,000 characters in length*. NSXMLNode* node = ...; NSString* val = [node stringValue]; // this is not the full contents of the node! The second line only gives me 80k or so. This is…
EightyEight
  • 3,430
  • 4
  • 36
  • 67
0
votes
1 answer

NSXMLElement, without an NSXMLDocument

I have an NSXMLElement that is a copy from somewhere else in my code. After it's been used, it no longer is connected to an NSXMLDocument. It's (what I believe to be) not linked to anything. If I NSLog the NSXMLElement, I am given the contents. I…
russellaugust
  • 358
  • 3
  • 17
0
votes
2 answers

Efficient process is NSXML or TouchXML

I am parsing a simple XML file, which one i can use for efficient parsing
0
votes
1 answer

Get the right node from duplicates xml with NSXML

I'm trying to us NSXML to parse a user's channel from youtube. Parsing works ok, but I can't seem to figure out how to get the link from any specific movie as their are 5 exact the same nodes as following:
Jos
  • 2,421
  • 5
  • 26
  • 30
0
votes
2 answers

different response is coming from .net web server using NSUrlrequest

I am getting the data from .net web server like this.
Mahesh Babu
  • 3,395
  • 9
  • 48
  • 97