开发者

converting schema in XML to XSD for visual studio

Note, I am not trying to generate the schema for an XML file from the file. There is plenty about that on the web. Kind of a waste--how can a file fail validation if the validator was generated from the file it's validating?

Anyway, I want to test an SSIS component that requires a configuration file in XML (not XSD) to tell it how to parse another input file (this input is also not XML).

The provider of this component says we have to create our own config xml files. I would like to use Intellisense to help do that. There is a schema for these config fi开发者_开发知识库les, but it is in XML.

Is there a way to create a schema from an XML file that represents the content of that file, not the structure?


Example is in second paragraph. Anyway, it turns out there is a way, and it's embarassingly simple.

Just rename the file from whatever.xml to whatever.xsd

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜