I am using Visual Studio 2012. I intentionally prepared some XML files with specific errors in order to unit test my XML Schema. I would like to suppress only the warnings I prepared. Examples of the warnings are:
Warning 3 'ProductRef' is already used as an ID. <some_path>\'ProductRef' should be unique.nbs.xml
Warning 2 The 'ProductRef' element is invalid - The value '' is invalid according to its datatype 'String' - The actual length is less than the MinLength value. <some_path>\'ProductRef' should not be empty.nbs.xml
Warning 1 The value of the 'version' attribute does not equal its fixed value. <some_path>\root@'version' should be 1.0.nbs.xml
The following links did not help:
- Similar question about HTML: How to selectively suppress markup validation in Visual Studio?
- MSDN article: Markup Validation in Visual Studio