NSXML is Apple's Objective C API for doing tree-based XML document parsing and construction.
Questions tagged [nsxml]
74 questions
0
votes
1 answer
How to make NSXMLDocument from filelist
I have a filelist like /Test/Demo1/Demo2/Demo3/demo.mp4 and want make XML document in Objective-C. I have a code for make NSMutableDictionary:
-(NSMutableDictionary *)addFile:(NSString *)path toTree:(NSMutableDictionary *)tree {
NSMutableDictionary…

Torokh
- 33
- 1
- 8
0
votes
2 answers
NSXML Not parsing values for entries
I have an iPhone app that I'm building which goes out and gets a xml file and then parses data from it to create objects. For some odd reason though the text I try to parse out always has a value of nil.
/*
Sample entry
Afton Alps…
0
votes
1 answer
NSXML Parsing through objective C
I am working on xml parsing through Objective C. I am getting trouble into following part.
Please help me out. I am using NSXMLParser class and its delegates.
How to trace out "url", "type", "height" these tags from below XML code.

Swapnil
- 1,858
- 2
- 22
- 49
0
votes
2 answers
how to parse xml using libxml2 in iphone
i am getting information in the form of xml from .net web server.
I am using NSXml parser to parse it.
But it takes time to parse.
I hear that libxmll2 is faster than NSXml parser.
But i did n't find clear info regarding how to use it.
can any one…

Mahesh Babu
- 3,395
- 9
- 48
- 97
0
votes
2 answers
UITableView show only first row
My app has 3 tabs (Kids, Points and Requests) with same result list.
I'm using a custom cell to show kids information with same data in 3 tabs.
For example:
Kids Tab:
Kid name 1
Kid name 2
Kid name 3
Points tab:
Kid name 1
Kid name 2
Kid name…

Cleber Santos
- 1
- 3
0
votes
1 answer
Using Gdata and Xmpp protocol both in one application
I am integrating two apps into one. the first app is a chat app. We have used xmpp framework for retrieving Gmail chat buddies form Gmail account. In the other app we have used Google Data Protocol for logging into gmail account and retrieve all the…

Jayshree
- 281
- 1
- 6
- 28
0
votes
0 answers
NSXMLParser stop parsing and return entire NSXMLNode as string
How would I go about telling NSXMLParser to stop parsing a particular node, and just return all the inner content as a string?
for example:
no
i want to return no as a string, rather than drill down…

gypsyDev
- 1,232
- 1
- 14
- 22
0
votes
1 answer
Extracting info. from XML into Cocoa
I am trying to parse an XML to extract values of certain variables. Here's an example:
xyz
…

ZionKing
- 326
- 1
- 4
- 16
0
votes
1 answer
How to check the XML tag string?
Hi I am working with the xml below is my xml from server.
A2EFL-1434
Now i need to check that whether…

Bittoo
- 579
- 7
- 21
0
votes
1 answer
NSXMLparser with basic authentication in IOS swift
We have a web service which needs authentication to fetch XML data.Now I am writing a code in swift to parse this XML request. I am using NSXML parser.
But it is not working with authentication. Where to pass these credentials?

PrasadK
- 1
- 1
0
votes
2 answers
NSXML Parser always calls the "parseErrorOccurred" delegate first
I have the following code,
NSString *string = "Some value";
NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding];
self.parser = [[NSXMLParser alloc] initWithData:data];
self.parser.delegate = self;
[self.parser parse];
After I call…

Sheik_101
- 770
- 1
- 8
- 24
0
votes
1 answer
'Attempt to mutate immutable object with appendString:' error when parsing xml
I'm parsing an rss feed in Objective-C with NSXMLParser.
This rss is similar to this:
…

Georgio Sayegh
- 343
- 1
- 15
0
votes
1 answer
Text encoding problem between NSImage, NSData, and NSXMLDocument
I'm attempting to take an NSImage and convert it to a string which I can write in an XML document.
My current attempt looks something like this:
[xmlDocument setCharacterEncoding: @"US-ASCII"];
NSData* data = [image TIFFRepresentation];
NSString*…

andyvn22
- 14,696
- 1
- 52
- 74
0
votes
2 answers
How to Parse through nsXml Parser
i am very new to iphone Development and i am asked to use nsxml parser to parse xml from a google api. i have parsed another url which has xml but i am not able to parse google's because it is using id's to store data rather than inside tag.…

chsab420
- 191
- 2
- 3
- 14
0
votes
2 answers
Check the Node kind in an XML Tree
I have constructed an XML tree from an XML file. While constructing I do initWithKnd: or initWithKind: options: method.
How can I check if a node is of Element or CDATA or ay other kind while tracing the XML tree.

boom
- 5,856
- 24
- 61
- 96