将 XSLT 应用于来自 iOS 中的 Web 服务的 XML [英] Applying XSLT to an XML coming from a Webservice in iOS

查看:28
本文介绍了将 XSLT 应用于来自 iOS 中的 Web 服务的 XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 iPAD 应用程序中,我从 Web 服务获取 XML.我使用 NSURL 连接调用 Web 服务并从中获取数据.我通常使用 NSXMLParser 解析 XML 并将数据显示在 UITableView 上.

In my iPAD application, I get an XML from a webservice.I use NSURL connection to call the Webservice and get Data from it. I usually parse the XML using NSXMLParser and display the data on a UITableView.

但由于要求,我需要获取 XML 并在其上应用和 XSLT 并将其显示在 UIWebView 上.我知道将 XSLT 应用于 XML 并显示它的基础知识.但是,我将如何在我的代码中动态地做到这一点?

But due to a requirement I need to get the XML and apply and XSLT on it and display it on a UIWebView. I know the basics of applying an XSLT to an XML and displaying it. However, how would I do it dynamically in my code?

如果有人能帮我解决这个问题就好了.

It would be great if someone could help me with this.

推荐答案

你可以使用 libxslt - 请参阅此处了解更多信息 - iPhone 中的 XSLT 版本

you may use libxslt - see here for more info - Version of XSLT in iPhone

这篇关于将 XSLT 应用于来自 iOS 中的 Web 服务的 XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆