nsxmlparser

Problems parsing XML using NSXMLParser

I'm having strange problems parsing (apparently) correct XML code! The xml parsed is: <?xml version="1.0" encoding="UTF-8" ?> <root> <results> <file id="0" name=" Linux Ubuntu.rar 700.64 2" size="700" disp="2"/> <file id="1" name=" [Soft] Sistema operativo Linux. ...

NSXMLParser and BOM bytes

Hi, I'm getting my xml file as a result of a php query from some server. When I print the resulting data to the console I'm getting well-structured xml file. When I try to parse it using NSXMLParser it returns NSXMLParserErrorDomain with code 4 - empty document. I saw that xmls that it couldn't parse have BOM (Byte order mark) sequence ...

Parsing XML without attribute and display it in UITableView in iPhone Programming

Hello all, I'm newbie in iPhone Application Programming. I can't get value from XML file and display it in UITableView. I need to get the name value of animal. How is the simple way to parse XML without attribute? I've been read NSXMLParser Documentation but the data is not displayed in my UITableView. Here is my XML file : <?xml versio...

how to use specific encoding on NSXMLParser ?

how to use specific encoding on NSXMLParser ? It default on utf-8 ,I want to use on tis-620 any idea? ...

NSXMLParser Memory Allocation Efficiency for the iPhone

Hello, I've recently been playing with code for an iPhone app to parse XML. Sticking to Cocoa, I decided to go with the NSXMLParser class. The app will be responsible for parsing 10,000+ "computers", all which contain 6 other strings of information. For my test, I've verified that the XML is around 900k-1MB in size. My data model is to...

iPhone: NSXMLParser's foundCharacters method called multiple time for single tag

hi all, i am able to parse the XML file. but i am facing strange error. My XML file format is like this <contact> <contactServiceTag>3B92E6A7-B599-EAE9-1CB7B5592CB8695C</contactServiceTag> <contactDeletedBoolean>0</contactDeletedBoolean> <contactLinkStatus>Stored</contactLinkStatus> <contactName>P4</contactName> − <con...

iPhone app freezes when parsing XML

My app freezes whenever I parse an XML feed. I have tried calling this instead: [NSThread detachNewThreadSelector:@selector(parseXML) toTarget:self withObject:nil]; which calls: -(void) parseXML { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [self parseXMLFileAtURL:path]; [pool drain]; } but my app has ...

Are there good and easy to understand tutorials on NSXMLParser?

I try to wrap my head around NSXMLParser and all its delegate methods. Would be great if someone knew a good tutorial on that. I need an overview that describes the concept and how things are done. I know the seismicXML example from apple but it's really hard to grasp. I also know there are plenty of other frameworks like TouchXML, but ...

mach_msg_trap crash with xmlparser from iphone application

Hi All, I am new with xCode and objective C. I am using NSXMLParser to parse my xml data and then saved it to sqlite database. Following is my code to start xml parsing. NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData: data]; [xmlParser setDelegate: self]; [xmlParser setShouldResolveExternalEntities: YES]; [xmlParser parse...

XMLParser delegate and memory leaks

Hi everyone I am building an application that has to handle the parsing of several different kinds of XML files. As I want to standardize the procedure as much as possible, I created a singleton class which handles the parsing of any XML data. The class is handed two options, a unique identifier telling it what kind of XML data it is go...

Memory leak in XML Parser

Hi everyone I use NSXMLParser for parsing an XML document. I have the following functions (among others): - (void) parserDidStartDocument:(NSXMLParser *)parser { // Init tempString tempString = [NSMutableString string]; } - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)n...

How to get my last TWEET into an NSString in my iPhone app?

There are a bunch of tutorials online about how to use xmlparsers or what not to bring an entire twitter feed into a UITableView. Thats not what I need. I only want ONE tweet. The most recent twitter update. So, would some of you geniuses please show me in detail how to get my last (most recent) TWEET into an NSString in my iPhone app?...

iPhone SDK XML Parsing Attribute VS Nested elements

Hi all, I'm experiencing some performance problem using XML parser with iphone sdk. I tried to use LibXML parser directly and the NSXMLParser, but i had the same results. Now I'm looking for something that can improve parsing performance. Moving attributes to a nested elements can make it faster? I got an XML source file like this: <...

Using different delegates for NSXmlParser

I am trying to figure out the best way to design something. I am writing an iPhone App and for the most part I am using async calls to a web service. This means that I cam setting up a URLConnection, calling start and letting it call me back when the data is available or an exception occurs. This works well and I think is the correct way...

Reusing NSXMLParser

Hi, in a class i'm writing i'll most likely have to use NSXMLParser twice to parse two different xml's, and i'm wondering which approach should i use? - release the parser after it finished parsing url and reinitialize when need to parse the second url? - use different class as delegate for parsing other url? - or something else? thanks...

Table View Populating all cells with last xml entry iphone

Hi, Im trying to parse XML (which seems ok) and populate a Table View on Iphone. I'm working from apples siesmec examples. My XML looks something like this and has about 10 entries going from artist1 to artist10 <promo> <id> 42 </id> <artistname> artist1 </artistname> <img> http://address.com/avatar_42.jpg </img> </promo> If I put in...

NSXMLParser Error code:5, iphone

When i try to parse an xml using nsxmlparser, this error code is showing up, what is this error code pointing to ...

iPhone - Can we parse .plist(xml) file using NSXMLParser?

iPhone - Can we parse .plist(xml) file using NSXMLParser? Thanks in advance. Ruchir ...

How add a default value to an array when child element is not found in xml parsing?

I am new to iphone development.I am parsing an XML page and displaying the content in a tableview.In some block in the XML page , the child element is missing , i want to add a value o in my array, when the child element is not fond in the particular block.My XML file is like <entry> <id>xxx </id> <title>xxxxx</title> <gd:ratings n...

NSXML Parser width a searchBar

Hi, I tried to find some ressources for creating an XML parser with a searchBar. Any Idea? Thanks a lot ...