iphone - Help me to parse -


i'm using class written blogger takes xml string , spits out nsdictionary.

it's beautiful...works perfectly, tag not parsed. since in class has used below

nsstring *const kxmlreadertextnodekey = @"text";  - (void)parser:(nsxmlparser *)parser didendelement:(nsstring *)elementname namespaceuri:(nsstring *)namespaceuri qualifiedname:(nsstring *)qname {      // update parent dict text info     nsmutabledictionary *dictinprogress = [dictionarystack lastobject];      // set text property     if ([textinprogress length] > 0)     {         [dictinprogress setobject:textinprogress forkey:kxmlreadertextnodekey];            // reset text         [textinprogress release];         textinprogress = [[nsmutablestring alloc] init];     }      // pop current dict     [dictionarystack removelastobject]; } 

kindly please me out how fix this...

thanks lot

note: make sure xml you’re parsing doesn’t contain field named “text”! can change non-conflicting name editing kxmlreadertextnodekey constant @ top of xmlreader.m.

this there in blogger website. in xmlreader.m file have nsstring *const kxmlreadertextnodekey = @"text"; conflicts xml tag <text> either change xml field tag <text> else or

change nsstring *const kxmlreadertextnodekey = @"text";

to nsstring *const kxmlreadertextnodekey = @"textdata";

after use nsdictionary routine code. check out , let me know.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -