本文介绍了架构验证机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的Java 有类的SchemaFactory 这是用于模式验证,但它不是在Android的使用。是否有任何其他选项可用?

In java there is class SchemaFactory which is used for schema validation but it is not available in android. Is there any other option available?

推荐答案

目前在Android中没有XSchema支持。这是在1.0版真的,我只是看着的变化,1.5和没有修改过任何的XML封装,所以在我看来,它仍然是真实的。我没有源> 1.0,虽然。

There is currently no XSchema support in Android. This was true in version 1.0, and I just looked at the changes in 1.5 and no changes have been made to any of the xml packages, so it appears to me it's still true. I don't have the source > 1.0 though.

在1.0源$ C ​​$ C有各种解析器类以下意见:

In the 1.0 source code there's the following comments in various parser classes:

// TODO No XSchema support in Android 1.0. Maybe later.

所以你必须要捆绑你自己的类或跳过模式验证干脆现在。这可能不是一个高优先级功能,为他们。

So you'll have to bundle your own classes or skip schema validation altogether for now. It's probably not a high priority feature for them.

这篇关于架构验证机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 03:53