English 中文(简体)
Parse XML in Pic (attributbuted not separate)
原标题:Parse XML in iPhone (attributed not separated)


Is there a way to parse an XML in iOS where the attribute are not separated e.g:
Users
UserId="1" Name="John Smith" Loc="London"
UserId="2" Name="Johnny Cash" Loc="Nashville"
Users

增 编

最佳回答

象你原住者一样,它根本就座。 你们没有一切有用的象征,通常会帮助 par平。 你们要把新的格式具体化。

我的第一点意见是,要问谁向你们提供这种信息,以使之达到适当的格式(JSON或Plist是最容易与你合作的人)。

如果不这样做,如果饲料不是太大(否则你会打上绩效问题),则按特性将饲料按人工特性分类。 也许,你想写出一个以教区为基础的活动。

Split the feed line by line, perhaps using componentsSeparatedByString: Then read characters into a string untill you hit an = that string is your key. Next read between the quotes "" That string is your value. FIre the key and the value off to a delegate.

问题回答

JSON教课将帮助你毕业......

    NSString *responseString = @""; // your data contained string.
    SBJSON *json = [[SBJSON new] autorelease];
    NSArray *resultData = [json objectWithString:responseString error:&error];




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签