Hi Sandro,
just to mention it (this has nothing to do with your original question):
Why don't you create your NSMutableDictionary with
[NSMutableDictionary dictionary] ?
This produces exactly the same result as [[[NSMutableDictionary
alloc] init] autorelease] -
practically all Cocoa CLASS met
Greg,
Thank you for the input,
I was just in the process of writing that down on paper.
very appreciated!!
Sandro.
On 2010-12-28, at 1:56 PM, Greg Guerin wrote:
> Sandro Noël wrote:
>
>> the glitch that breaks all my current logic is when there are elements with
>> the same name at the sa
Sandro Noël wrote:
the glitch that breaks all my current logic is when there are
elements with the same name at the same level.
for instance in a RSS,
rss
chanel
item
item
item
this breaks the logic I can apply to a NSDictionary, becau
Following on the same path as suggested to take a step back and examine
what you want to happen, launch Property List Editor, create a Property
List file, and manually add the items from your XML scenarios to determine
what you really want to happen for each item you encounter.
On 12/28/2010 10:34
Greg, thank you.
the glitch that breaks all my current logic is when there are elements with the
same name at the same level.
for instance in a RSS,
rss
chanel
item
item
item
this breaks the logic I can apply to a NSDictionary, because th
Sandro Noël wrote:
- (NSDictionary *) plist{
NSMutableDictionary *resultDict = [[[NSMutableDictionary alloc]
init] autorelease];
if ([self hasChildren]){
NSMutableArray *child = [[[NSMutableArray alloc]init]
autorelease];
for (OSXMLElement *element in
Greetings.
I'm trying to convert XML file to a plist format.
i am using the event driven method of XMLParser for iOS.
it is currently working to some level but i am having a problem with XMl
elements all being nested into Dictionaries.
for example the following XML:
text