开发者

How do you validate XML with portion of XSD?

开发者 https://www.devze.com 2022-12-09 13:45 出处:网络
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

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

精彩评论

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