SCXML解析IOS [英] SCXML parsing IOS
问题描述
有人对在IOS中编写SCXML解析器有任何想法吗?
Do anyone have any idea about writing SCXML parsers in IOS ?
我经历了 http://www.w3.org/TR/scxml/并了解SCXML.
I went through this http://www.w3.org/TR/scxml/ and have idea about SCXML.
我现在需要创建解析架构.
I need to create parsing architecture now.
请告诉我是否有人有想法.
Kindly let me know if anyone has idea.
谢谢.
推荐答案
SCXML只是XML,因此,如果您只想解析文档,则只需要一个XML解析器.本文对适用于iOS的各种XML解析器进行了很好的概述:
SCXML is just XML, so if you simply want to parse the document, you only need an XML parser. This article has a good overview of various XML parsers available for iOS: http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project
另一方面,如果您需要将SCXML文档作为状态机执行,则需要一个SCXML引擎.如果您使用 UIWebView /PhoneGap,那么您可能会使用 SCION 作为SCXML引擎,因为它是JavaScript的实现.免责声明:我是该库的作者.
On the other hand, if you need to execute the SCXML document as a state machine, then you need an SCXML engine. If you create an iOS app using UIWebView/PhoneGap, then you could potentially use SCION as your SCXML engine, as it is implemented JavaScript. Disclaimer: I am the author fo this library.
这篇关于SCXML解析IOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!