Questions tagged [nsxmlparser]

NSXMLParser is a class of the Foundation Framework of Mac OSX developer library. This class allows developers to parse XML documents (including DTD declarations) in an event-driven manner.

NSXMLParser is a class of the Foundation Framework of Mac OSX developer library. This class allows developers to parse XML documents (including DTD declarations) in an event-driven manner. An NSXMLParser notifies its delegate about the items (elements, attributes, CDATA blocks, comments, and so on) that it encounters as it processes an XML document. It does not itself do anything with those parsed items except report them. It also reports parsing errors.

API documentation available at http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/Reference/Reference.html

1267 questions
45
votes
4 answers

NSXMLParser Simple Example

Most of the examples of how to invoke the NSXMLParser are contained within complex projects involving Apps. What does a simple example that demonstrates the callbacks look like.
TJA
  • 2,969
  • 2
  • 25
  • 32
24
votes
1 answer

Parsing a local xml file in iOS sdk

I need to parse a local xml file which is in my resource folder when a UIButton is pressed. I know how to parse an XML file from the web. Now how can i display the xml content which is in my resource folder. How do I parse a local XML file?
Saranya
  • 1,481
  • 3
  • 14
  • 26
17
votes
6 answers

Resolving html entities with NSXMLParser on iPhone

I think I read every single web page relating to this problem but I still cannot find a solution to it, so here I am. I have an HTML web page which is not under my control and I need to parse it from my iPhone application. Here is a sample of the…
Roberto
  • 257
  • 1
  • 4
  • 11
15
votes
2 answers

Xml parsing in iOS tutorial

Hi i'm creating an app which have to print a value in label from an xml file in server.I tried reading some of documentation under google search..but i can't find it...Does any one know simple tutorial or any sample code that is used to integrate…
Vishnu
  • 2,243
  • 2
  • 21
  • 44
13
votes
6 answers

Parser for Wikipedia

I downloaded a Wikipedia dump and I want to convert the wiki format into my object format. Is there a wiki parser available that converts the object into XML?
Boolean
  • 14,266
  • 30
  • 88
  • 129
12
votes
3 answers

How do I parse XML web service in Swift?

I don't know how to parse in my below code.. Can someone func callService(usr: String, pwdCode: String) { let url = NSURL(string: "http://inspect.dev.cbre.eu/SyncServices/api/jobmanagement/PlusContactAuthenticationPost") var…
dhaval shah
  • 4,499
  • 10
  • 29
  • 42
12
votes
2 answers

Streaming NSXMLParser with NSInputStream

Update: When using NSXMLParser class method initWithContentsOfURL, rather than parsing as the XML feed is downloaded, it appears to try to load the entire XML file into memory, and only then initiate the parsing process. This is problematic if the…
Rob
  • 415,655
  • 72
  • 787
  • 1,044
12
votes
2 answers

Using NSXMLParser with CDATA

I'm parsing an RSS feed with NSXMLParser and it's working fine for the title and other strings but one of the elements is an image thats like How do I add that as my cell image in my table view? Would I define…
Xcoder
  • 1,041
  • 5
  • 17
  • 29
11
votes
1 answer

Pesky new lines and whitespace in XML reader class

I'm using a class written by a blogger (http://troybrant.net/blog/) that takes an XML string and spits out a NSDictionary. It's beautiful...works perfectly, except I end up with a weird configuration of newlines and white space at the beginning of…
clifgriffin
  • 2,008
  • 3
  • 21
  • 41
10
votes
4 answers

Parsing XML file with NSXMLParser - getting values

I've got a XML file which contains some data I would like to use: This is the first product.
Jack Greenhill
  • 10,240
  • 12
  • 38
  • 70
10
votes
3 answers

NSXMLParser example

I have an XML like this -804 139 -845 639466
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
10
votes
4 answers

Is NSXMLParser's parse method asynchronous

Is NSXMLParser's parse method asynchronous? in other words if i have an NSXMLParse object and I call [someParseObject parse] from the main thread, will it block the main thread while it does its thing?
user160917
  • 9,211
  • 4
  • 53
  • 63
10
votes
3 answers

NSXMLParser init with XML in NSString format

I just ran into this one and couldn't seem to get any clear answer from the documentation. Im retrieving some XML through a HTTPS connection. I do all sorts of authentication etc. so I have a set of classes that deals with this in a nice threaded…
RickiG
  • 11,380
  • 13
  • 81
  • 120
10
votes
3 answers

NSXMLParser can't parse special characters (accents)

I'm using NSXMLParser to parse an xml from a url (my code is almost exactly the same as here) Some of the elements contain special characters like "á" which causes a word lik ándre to split into two (á and ndre). Here is my loadXMLByURL -(id)…
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
9
votes
2 answers

xml parsing in iOS swift

I am having bar or QR code scanning of Aadhar card.I am getting the response as the following xml format.How to convert this into dictionary format using xml parsing?
Madhumitha
  • 3,794
  • 8
  • 30
  • 45
1
2 3
84 85