可以在运行时使用Objc / iPhone代码验证xsd对xsd [英] Possible to validate xml against xsd using Objc/iPhone code at runtime

查看:146
本文介绍了可以在运行时使用Objc / iPhone代码验证xsd对xsd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在运行时读取的xml文件,是否可能在运行时使用Obj C?来验证xml对xsd文件。这可以在 java中完成 c#但是我需要在我的iphone应用程序运行时间。

I have xml files that I read in at runtime, is it possible to validate the xml against an xsd file at runtime using Obj C?? This can be done in java and c#.. But i need do it run time in my iphone app.

推荐答案

我不认为你可以使用Obj C在iOS。我想你需要使用libxml2。

I don't think you can do this using Obj C on iOS. I think you'll need to use libxml2.

这是一个简单的C程序的示例,它验证XML对XSD。

这是有关将libxml2添加到XCode项目的说明。

这篇关于可以在运行时使用Objc / iPhone代码验证xsd对xsd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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