如何使用Visual Studio 2005针对模式验证XML文件

时间:2021-03-14 17:14:59

Is it possible to validate an xml file against its associated schema using Visual Studio 2005 IDE?

是否可以使用Visual Studio 2005 IDE针对其关联的架构验证xml文件?

I could only see options to create a schema based on the current file, or show the XSLT output

我只能看到基于当前文件创建模式的选项,或者显示XSLT输出

如何使用Visual Studio 2005针对模式验证XML文件

2 个解决方案

#1


5  

It's done automatically, errors appear as warnings in the "Error List" and are additionally underlined with the blue squiggle in the source file.

它是自动完成的,错误在“错误列表”中显示为警告,并在源文件中使用蓝色波形加下划线。

Not sure if there is another way to validate the file, but this will do for now.

不确定是否有其他方法来验证文件,但现在这样做。

#2


0  

XmlSchemaValidator

Warning: It's not pretty to use.

警告:这不好用。

#1


5  

It's done automatically, errors appear as warnings in the "Error List" and are additionally underlined with the blue squiggle in the source file.

它是自动完成的,错误在“错误列表”中显示为警告,并在源文件中使用蓝色波形加下划线。

Not sure if there is another way to validate the file, but this will do for now.

不确定是否有其他方法来验证文件,但现在这样做。

#2


0  

XmlSchemaValidator

Warning: It's not pretty to use.

警告:这不好用。