?
Solved

XmlReaderSettings.ValidationType Property

Posted on 2011-09-30
1
Medium Priority
?
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

771 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