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
0
votes
1 answer

libxml2 xml parsing issue

I have an xml file which i create myself.
taffarel
  • 4,015
  • 4
  • 33
  • 61
0
votes
1 answer

How to fix encoding issues ? (NSString / XMLParsing)

I parsed an XML file containing UTF8/latin characters (é, â, è, î, etc...). At first I tried to fix this with a function replacing the wrong chars. But I'm having a problem with à, replaced by ". And as I don't want to replace all the " of my file,…
Rob
  • 15,732
  • 22
  • 69
  • 107
0
votes
1 answer

NSXMLParser encoding error

I'm programming an application using latin characters. Here are the lines I use to get data by XML parsing. NSURL *url = [NSURL URLWithString:urlString]; // urlString : param of the function NSData *data = [NSData dataWithContentsOfURL:url]; parser…
Rob
  • 15,732
  • 22
  • 69
  • 107
0
votes
1 answer

NSXMLParser issue : don't get all my items and no data

I have some difficulties to understand how to use NSXMLParser despite all the tutos I've watched... I have the following XML file with for example : The Title A URL English
Rob
  • 15,732
  • 22
  • 69
  • 107
0
votes
1 answer

iOS Modify local XML file

I'm using NSXMLParser to parse a local XML file on my iPad. Now I want to modify the file. I want to put some lines at the almost end of it. This is what my file looks like:
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
0
votes
3 answers

Iphone parsing large Xml documents

I just implemented my first XmlParser object (MyParserObj) that relies on the NSXMLParser object. This parser is embedded inside a tableviewController (MyTableViewController) and it starts parsing at MyTableViewController's viewDidLoad…
luca
  • 36,606
  • 27
  • 86
  • 125
0
votes
1 answer

UIWebView not recognizing URL address

I've build a XML Parse app,which retrieve from a PHP(XML Content) file some values from my database,in one of those values i have a URL,the problem is,every time i try to load the webView with this URL nothing happens!I have the following…
Mateus
  • 2,640
  • 5
  • 44
  • 62
0
votes
1 answer

Get repeated value when using NSXmlParser to parse XML file

I have a simple XML file. I just want to get user name and password. But it's generated repeated value when i was use nslog to observe the result. XML structure is just like this: Vincent
Vincent Xu
  • 1
  • 2
  • 3
0
votes
1 answer

Use NSXMLParser and NSOperation without block UI

i have a search bar and search some information from internet, then start a NSXMLParser from url and then show information parsed in a UITableView, but in this process the UI is blocked, and if i want to cancel the searching to do another search i…
Piero
  • 9,173
  • 18
  • 90
  • 160
0
votes
2 answers

Setting NSString variables with NSXMLParser

I am using NSXMLParser to grab information from an online XML file. My goal is to have one class do the XML parsing and another class to implement the variables. Below is the code for my project: Current.h & Current.m #import…
wigging
  • 8,492
  • 12
  • 75
  • 117
0
votes
1 answer

Gracefully Halting NSXMLParser?

still new to XML parsing with the iphone so i have a few questions. in my opinion, id like my iphone-app to have to request out to the internet as less as possible, so i have combined a few XMLs i had to a single, larger one. However when im…
James Hall
  • 6,469
  • 6
  • 27
  • 28
0
votes
1 answer

IOS - NSMutableString: appending, and initializing a property

I'm obviously not getting something with this. I'm parsing an XML Document so I have an NSMutableString to append to for one of the elements because foundCharacters gets cut off and does it in pieces. I can get this all working but I don't…
Doug
  • 1,316
  • 6
  • 19
  • 36
0
votes
2 answers

How to store the nodes of an XML into an NSArray using NSXMLParser

I am not able to totally understand the flow of NSXMLParser and the delegate methods associated to them. Is there any way or any example where a detailed explanation is made how parsing is done using NSXMLParser. I have another XML where i need to…
Pradeep Reddy Kypa
  • 3,992
  • 7
  • 57
  • 75
0
votes
1 answer

How to ignore parseErrorOccurred when using NSXMLParser to parse xml

I'm now using NSXMLParser to parse html, but when meet "br" tag in html, it will throw an error for mismatch and stop to parse, because typically "/br" tag will not appear in html. So I want to ignore this mismatch error to continue parse, how to…
Yuwen Yan
  • 4,777
  • 10
  • 33
  • 63
0
votes
1 answer

NSXMLParser acting strangely

Having a hard time parsing XML created from a web-form using POST. Here's the scenario: 1) User comes to a web-page, enters their name into a text-field, and clicks SUBMIT 2) This calls a PHP file (called "makeXML.php") which generates an XML file…
sirab333
  • 3,662
  • 8
  • 41
  • 54