Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does VS2010 have an xml schema validator?

I am wondering does VS 2010 have something that I can use to compare an xml document to my schema? I tried a few online tools but my xml document seems to big and my browser just crashes.

like image 797
chobo2 Avatar asked Jul 29 '10 21:07

chobo2


People also ask

Can we validate XML Schema?

XML documents are validated by the Create method of the XmlReader class. To validate an XML document, construct an XmlReaderSettings object that contains an XML schema definition language (XSD) schema with which to validate the XML document.

Can VS code validate XML?

You can validate your XML with a grammar (XSD, DTD).


1 Answers

Visual Studio provides design time validation and intellisense for XML. When you open an XML file you have to option of associating one of more schemas (from the properties window), which can be used to validate the file. See the documentation on the XML Editor in Visual Studio. While this article applies to Visual Studio 2005, it provides a graphical view of the capabilites that are present in 2005 and onwards.

like image 81
Garett Avatar answered Sep 24 '22 00:09

Garett