Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can you validate xsd against xml in vs 2010?

How do I validate an xml document against an xsd in Visual Studio 2010?

Thanks.

like image 949
user9969 Avatar asked Jan 24 '12 14:01

user9969


People also ask

Can we validate XML documents against a schema?

You can validate your XML documents against XML schemas only; validation against DTDs is not supported. However, although you cannot validate against DTDs, you can insert documents that contain a DOCTYPE or that refer to DTDs.

Can you generate XSD from XML?

The XML editor lets you create an XML Schema definition language (XSD) schema from an XML document.


1 Answers

Open you XML file in VS2010; in the Properties tool window (F4) there is a Schemas property. List the XSD you want in there. Once done, the errors/warnings will show up in the Error List tool window.

like image 106
Petru Gardea Avatar answered Sep 27 '22 22:09

Petru Gardea