且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

XSD导入命名空间

更新时间:2022-06-25 00:47:15

具有这种循环依赖关系是完全有效的(尽管值得商bat).您的模式集未通过验证的原因不能是它;您将必须检查架构处理器生成的错误,并尝试了解每个错误.通常,***的做法是从第一个错误消息开始.

It is perfectly valid (albeit debatable) to have these kind of circular dependencies; the reason why your schema set doesn't validate can't be it; you'll have to inspect the errors your schema processor generates and try to understand each one of them. It is generaly accepted that the best is to start with the first error message.

您的代码段无效,因为您引用的是未在 schema1 中列出的element2(在second.xsd中).这种事情不会通过验证,因此请专注于它们.

Your snippets are invalid since you're referencing an element2 (in second.xsd) that you didn't list in schema1. This is the kind of thing that won't pass validation, so focus on them.

如果您需要帮助以了解真正的问题所在,请首先使用实际的错误消息更新您的帖子.

If you need help with understanding what the real issue is, start by updating your post with the actual error message.