用于iPhone的xml到html解析器 [英] xml to html parser for iPhone

查看:111
本文介绍了用于iPhone的xml到html解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Flash的XML例如

 <?xml version =1.0encoding =utf-8? > 

< screen type =TEXT_PIC_RIGHTasset =WT01010.swfaudio =WT01010.mp3filter =learningObjectives>

< area type =title><![CDATA [Chapter Learning Objectives]]>< / area>

< area type =text><![CDATA [完成本章后,您应该能够:]]>< / area>

< area type =textbullet>< bullet><![CDATA [1。]]>< / bullet>< text><![CDATA [描述主要功能和神经系统的2个主要部门]]>< / text>< / area>

< area type =textbullet>< bullet><![CDATA [2。]]>< / bullet>< text><![CDATA [Identify < font color =#0000FF>< b>< a href =>事件:术语表,周围神经系统(PNS)>周围神经系统(PNS)< /><< ; / b>< /字体>以及他们如何操作]]>< / text>< / area>
< / screen>

它用于显示使用Flash的网页。如何将它转换为Html,以便我可以在webview中显示该页面?任何人都可以帮助我吗?如果有任何问题与任何xml格式转换为任何其他格式有关,我总是建议使用XSLT是因为XSLT完全是为了这个目的而设计的,所以最好的办法就是实现它。



所以我对iPhone不熟悉,但我很确定这里有一个XSLT实现。


I have Flash xml of eg

    <?xml version="1.0" encoding="utf-8"?>

    <screen type="TEXT_PIC_RIGHT" asset="WT01010.swf" audio="WT01010.mp3" filter="learningObjectives">

        <area type="title"><![CDATA[Chapter Learning Objectives]]></area>

        <area type="text"><![CDATA[After completing this chapter, you should be able to:]]></area>

            <area type="textbullet"><bullet><![CDATA[1.]]></bullet><text><![CDATA[Describe the primary functions and the 2 main divisions of the nervous system]]></text></area>

            <area type="textbullet"><bullet><![CDATA[2.]]></bullet><text><![CDATA[Identify the subdivisions of the <font color="#0000FF"><b><a href="event:glossary,peripheral nervous system (PNS)">peripheral nervous system (PNS)</a></b></font> and how they operate]]></text></area>
</screen>

It used to display webpage Using Flash. How Can i convert it to Html so that i can display that page in a webview? Can anyone one help me with this?? thanks in advance!!!!

解决方案

If any question is related to Converting any xml format to any other format i always recommend using XSLT because XSLT is made exactly for that purpose and therefor the best way to do it.

So i'm not familiar with the iphone but i'm pretty sure there is an XSLT implementation for it.

这篇关于用于iPhone的xml到html解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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