Objective C xml 编译/运行
Objective C 是否可以编译 xml 数据(例如 aiml 文件)?
我正在寻找它来编译 AIML 文件,然后能够使用 Objective c 与文件“聊天”。有 XMLView 之类的吗???有什么想法吗?
以利亚
It it possible for objective c to compile xml data (aiml files for example)??
I'm looking for it to compile AIML files then be able to "chat" with the files using objective c. Is there a XMLView or something??? Any ideas??
Elijah
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“编译”是什么意思?不存在编译通用 XML 文件这样的概念。我对
aiml
文件没有详细的了解,但并不是说你想查看其中的XML数据本身,对吧?或者这就是你想要的?我想您想创建一个基于
aiml
的机器人,它根据aiml
文件中给出的数据进行操作。那么您需要的不是 XML 查看器;而是 XML 查看器。相反,您需要一个aiml
机器人的实现。这与 XML 本身无关。您可能误解了,XML 本身并不是一种编程语言;它是一种编程语言。这是以纯文本形式组织数据的好方法。这并不是说您可以像处理 C/C++/Objective-C 源代码那样获取 XML 文件、编译并运行它。
您应该查看那里的实现列表: http://www.alicebot.org /downloads/programs.html
Objective-C 是 C 的超集,您还可以使用 Objective-C++ 一起使用 C++。因此您应该能够使用此处列出的 C++ 实现。
What do you mean by "compiling"? There's no such concept as compiling a generic XML file. I don't have a detailed understanding of
aiml
files, but it's not that you want to view the XML data itself in it, right? Or is that what you want?I suppose you want to make an
aiml
-based bot which operates based on data given in theaiml
file. Then what you need is not an XML viewer; rather, you need an implementation ofaiml
bot. This is not about XML per se.You might have misunderstood, but XML is not a programming language in itself; it's just a nice way to organize data in a plain text. It's not that you can take an XML file, compile and run it just as you would do with a C/C++/Objective-C source code.
You should have a look at the list of the implementations there: http://www.alicebot.org/downloads/programs.html
Objective-C is a superset of C, and you can also use C++ together using Objective-C++. So you should be able to use the C++ implementations listed there.