Solved

XmlReaderSettings.ValidationType Property

Posted on 2011-09-30
1
291 Views
Last Modified: 2012-06-27
I do not quitely understand the meaning of XmlReaderSettings.ValidationType Property.
Plesase look at MSDN.
If there is no validation for xml in the code and just read the xml file directly, what will happen?

Thanks.
0
Comment
Question by:zhshqzyc
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 36891986
I do not quitely understand the meaning of XmlReaderSettings.ValidationType Property.
You have to understand a bit about XML in order to understand what this property is for. I'm sure your familiar with the idea that XML is a markup language--one in which you, the author, defines what the tags of the markup language are. But how do you dictate to others what the valid tags of your language are? You use either a DTD (Document Type Definition) or a Schema. Both accomplish the same goal, but they do so in different ways. The purpose of the property is to specify which method your XML document expects.

If there is no validation for xml in the code and just read the xml file directly, what will happen?
You can certainly read in an XML document without validation, provided the document is well-formed. You just won't know if the document follows the rules of the defined language (e.g. is a tag used in the document defined by the DTD or Schema) without validation. You can still use and manipulate the XML.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DOCTYPE in pubmed 5 56
Merge XML into DOM 5 37
Problem to DocumentFormat 8 75
XML XSL Message 3 14
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now