开发者

How can I 'validate' that an XML file is correctly using the .xsd file I set for it?

I'm 开发者_开发技巧new to XML validation using .xsd files.

Maybe I'm not even asking the correct question here; but is there a way for the computer to tell me that 'Yeah, your XML file is correctly formatted according this .xsd file you made'.

I imagine I need a validator of some sort. Do those exist and it that what I need?


Yes, there are several ways:

  • your IDE probably has the capabilities built-in;
  • there is a variety of command line tools which will do this;
  • there are on-line services for this;

Tell us the details of your development set up and SO will provide more apposite help. Linux or Windows ? NetBeans, Visual Studio or Eclipse ? And so on.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜