【问题标题】:How to parse xml into a table veiw如何将xml解析为表格视图
【发布时间】:2014-07-15 03:50:52
【问题描述】:

我是 Android 的 IOS 新手,想知道如何将带有多个标签的 xml 解析到列表视图中。解析完成后,单击操作会使用链接标记中的 url 启动详细 web 视图。这是列表之一。粗略的指南或教程会很棒。 http://graffiti.hostoi.com/00Graffiti00/lists/arts.xml

在 android 中看起来像这样

【问题讨论】:

    标签: ios xml parsing uitableview


    【解决方案1】:

    检查此链接以进行 xml 解析

    NSString *url=@"http://www.lancers.jp/work/search/.rss";
    
    NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:url]];
    NSDictionary *dict=[XMLReader dictionaryForXMLData:data error:nil];
    

    Check this link also

    Demo code of XML

    【讨论】:

    • 感谢您的教程。您也不知道如何解析图像,对吗?
    • @user3381665 get thumb_url from dictionary.that也叫图像解析
    猜你喜欢
    • 1970-01-01
    • 2012-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-15
    相关资源
    最近更新 更多