I am working on a project in Visual Studio that reads XML files. I want to write a Unit Test to make sure invalid XMLs are handled correctly. But when adding an invalid XML to VS it shows error messages indicating that my XML is not valid. My solution still builds but I would still like to get rid of these error messages since in this case they are not really errors.
Is there a way to tell Visual Studio to ignore errors for this specific XML file? In general I like that VS checks my XML files but in this case I don't want it.
This is the XML I am using for testing:
<?xml version="1.0" encoding="us-ascii"?>
<ADI>
<BreakMe>
<Author>Arne</Author>
<Wurst>Sandy</Wurst>
<Date>2015-09-24T07:35:28Z</Date>
</ADI>
Thank you for your help!
Aucun commentaire:
Enregistrer un commentaire