【发布时间】:2016-12-19 07:29:10
【问题描述】:
我来自 python 并试图快速学习。在 python 中,我想要做的非常简单,有漂亮的汤和请求,但我一直没能找到快速做到这一点的方法。我发现的大多数教程都已过时。我有一个 url,其中包含 xml 中的站点地图。好像
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>
http://www.link.com
</loc>
</sitemap>
<sitemap>
<loc>
http://www.link2.com
</loc>
</sitemap
</sitemapindex>
我想要做的是获取链接的内容并解析 xml 以遍历每个元素。我怎么能在 Swift 3 中做到这一点?
【问题讨论】:
标签: ios xml swift3 httprequest