开发者

How do you validate XML with portion of XSD?

How do you开发者_运维问答 validate XML with only a portion of XSD ?


I don't think you can - you need to validate your XML against a complete XML schema. If you have several that are made up of various imports, you need one XSD file for each of those various "partial" subsets.

Marc


Can you elaborate a bit on the issue?

As a stab in the dark, I would say that as long as the xsd is well formed should be able to run the xml against it; that said there is no assurance that it will validate. Can you post the xml and/or the xsd fragment?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜