Solved

XmlReaderSettings.ValidationType Property

Posted on 2011-09-30
1
286 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 74

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

12 Experts available now in Live!

Get 1:1 Help Now