Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XmlReaderSettings.ValidationType Property

Posted on 2011-09-30
1
Medium Priority
?
321 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

885 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