Last post Dec 12, 2010 09:00 PM by decker dong - msft
Dec 10, 2010 01:22 AM|rohitpundlik|LINK
Can anyone tell me how exactly xml works for .net framework and is it necessary to implement xml ? why XML is so necessary and how to use it?
Dec 10, 2010 05:10 AM|Huske|LINK
There are books written about your question.
Have a look at this web site to get some ideas about XML
As for using it in .NET, there are many ways. You can use XmlDocument, XmlReader, LINQ to XML using XDocument.
Dec 12, 2010 01:20 AM|rohitpundlik|LINK
Ok, got what exactly XML is, But what are security measures to store data in XML file, cause it can be accessed by any individual???
Dec 12, 2010 02:21 PM|smirnov|LINK
There are different kinds of data and they have different uses. Some data don't require much security and authorization. For instance, an RSS feed, a dynamically generated summary of information or news published on a web site. Another example is a sitemap
for search engines, an XML file with URLs on a website that are available for crawling. Another example is an exchange of product data catalogues between suppliers and purchasing organisations. And... and... and...
You can save XML file in a secure place, so the application can access the file, but not the users. In ASP.NET world, it could be \App_Data directory, or any other directory where internet users have no access to browse (for example, a directory outside
the web root). This makes XML secure, because the data cannot be viewed. You can even save passwords and any other kind of sensitive information. Note, you can encrypt passwords using different methods which would make this more secure.
XML is a standard and widely used in a web technologies. Since ASP.NET is an web technology, it interacts and uses XML too.
Dec 12, 2010 09:00 PM|Decker Dong - MSFT|LINK
XML is a kind of formation that store something like configuration in App.config or Web.config. And it's widely used in nearly all kinds of configuration
of applications like updating version or something. XML is now taking up the position of ini. In .NET framework, You can use XmlDocument/XmlTextReader/XmlTextWriter to deal with the problem. If your version is up to 3.5 (or 4.0). LINQ-TO-XML is
your another best choice.
For XmlDocument/XmlTextReader/XmlTextWriter: http://msdn.microsoft.com/en-au/library/system.xml.xmldocument(v=vs.80).aspx