C# Corner

Resources  
  • Read Microsoft Access Database in C#Jan 01, 2000. How to connect and read data from a Microsoft Access (.mdb) database using ADO.NET and C#.
  • Use C# to write comments and documentationJan 12, 2000. Comments and Documentation is one of the most hated tasks by programmers. By using C# programmers can can automatically builds the documentation and comments in the code. This documentation is a XML file which is more or less self explanatory.
  • Read a file using C#Jan 15, 2000. This program just demonstrate the use of FileStream & StreamReader.
  • How to read a value from Console?Oct 07, 2000. This article explains how to get the input from the console using ReadLine.
  • FileStream : Read or Write Data StreamsDec 13, 2000. FileStream class can be used to read/write data to a file with the help of StreamReader and StreamWriter classes.
  • Reading and Wtiting XML DocumentsJan 16, 2001. In this article you will see how to read and write XML documents using XML API available in .NET Framework class library.
  • How to read Windows Registry?Jan 26, 2001. In .NET, the Registry and RegistryKey classes can be used to read and write registry ...
  • ADODataReader- Writing DataSets to XMLFeb 04, 2001. This file uses ADODataReader and other objects to write DataSets to XML and filling data from the XML files.
  • Schedule Program Using C#Feb 22, 2001. The Scheduling program consists of three main classes. The Form, the DatabaseController used to read and write scheduled events into the database and RowData which corresponds to data extracted from a row in the database.
  • Reading and Writing to the RegistryFeb 28, 2001. This is a class that both reads and writes to the registry that I made while converting some applications to use C#.
  • Testing .Net Components Using NUnitMar 08, 2001. Write unit tests before starting development". Writing test allows me to see immediate results of every code change.
  • View Relational Data in a DataGridMar 15, 2001. This article explains you how easy is reading a database and displaying in a grid using DataSet.
  • Write Relational Data to an XML FileMar 15, 2001. This article shows you how you can write data from a database to an XML file using DataSet.
  • Mail Merge ProgramMar 16, 2001. This is a simple mail merge program. This program reads from 3 different text files (by default) and merge all the info to produce mail documents.
  • Programming in ADO.NETMar 19, 2001. A simple example shows you how to read a database table in a dataset and display in a list view control.
  • Mail Merge Program - Part 2Mar 21, 2001. This is a simple mail merge program (Part 2). This program reads from the access database (by default) from a specified table.
  • Introduction to SOAPMar 22, 2001. Since the release I have been fascinated with this thing called SOAP, This bubbly new protocol backed by the power of XML is certainly going to make waves in the world of distributed computing. The first thing which comes into our mind is “Why the heck we didn’t think of this before?
  • Write XML in C#Mar 27, 2001. In this article, I will show you how to use XmlTextWriter class to create an XML document and write data to the document.
  • Inserting Data to an XML DocumentMar 28, 2001. The XmlNode and the XmlDocument classes can be used to insert XML data to an existing document or to a new document.
  • Reading XML FilesMar 28, 2001. In this article, I will show you how to use the XmlTextReader class to read an XML document and write data to the console.
  • Rotation SampleApr 24, 2001. After reading Mike Golds article on transforms I thought I would get things moving a bit!
  • Reading XML File using XmlDocumentApr 26, 2001. In this article Reading XML File using XmlDocument.
  • XML Strengths and Weaknesses with DOM, ASP, and XSLApr 30, 2001. In this article we're going to take a look at some of the terminology that comes with using XML and its related technologies, as well as how to create and transform XML documents with XSL using Microsoft's MSXML parser. To test the code samples shown in this article you should be running Windows NT/2000/XP with IIS installed. You should also have SQL server 2000 installed on the same machine.
  • Line numbering utility in C# and JavaMay 08, 2001. After reading this article Java programmers should be able to decipher and de-jargonize the .NET architecture and relate it with the proposed ECMA standard.
  • Mobile Fun with XMLMay 24, 2001. Here is something really wonderful in Mobile field .This example is for authenticating the Mobile Users against his settings stored in XML file. This is really good where all the ease of XML is applied. Function open the XML file and particular node data validate it against user inputs and do the specified.
  • Web Scanner Part-1Jun 01, 2001. My favourite technology web site is updated throughout the day. I thought it would be nice to have a program that checked every 30 minutes for updates and told me what stories were there.
  • Working With OleDb Data Adapters Jun 19, 2001. This step by step tutorial guides you to create your database applications using OleDb Data Adapters in VS.NET.
  • XML as Middle TierJul 12, 2001. There is always been a need that there will be an intelligent middle Layer between Database Server and the UI Code. There are many ways but one fantastic approach came in picture with the XML.
  • Mobile with Access DatabaseJul 14, 2001. Till now we had done the Programming using SQL Server and XML as Database.
  • .NET is the FutureJul 19, 2001. This has been a long time in coming. I couldn't write any more article because of some problems but finally I thought I should talk about the future of .NET. The reason is very simple, I'm getting almost 50 mails a day in my inbox just asking about the future of .NET and the comparison with other technologies. So I'm presenting my own views about the future possibilities of this technology.
  • PDF File GeneratorJul 26, 2001. PDF documents are the now a days is standard in Documents Exchange over the internet,as these documents are more or less platform independent and can be viewed on virtually any platform without any formatting or changes in the file structure.
  • Generating XML from SQL databaseJul 30, 2001. Some Days Back i posted the article dealing XML as a Middle tier but i guess the People didn't get the clear funda.
  • XML GeneratorAug 17, 2001. This article is about advance use of reflection package in Csharp.
  • MP3 IndexerAug 20, 2001. Mp3Indexer searches for existing Mp3 files on a given path, and generates a report in XML/XSL.
  • Advertising on MobileAug 30, 2001. Finally,its possible to advertise on your mobile phones. Mobiles toolkit provides an add rotator control very similiar to the ad rotator control for the Web. This control will disply the Advertisement in the random manner picking from the XML File.
  • Simple Game Developed in C#Sep 03, 2001. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Live News feed For Mobile SiteSep 05, 2001. Current News are read from a text file, which is being updated regularly after certain interval time.
  • Mouse and Key EventsSep 11, 2001. This article explains the usage of key and mouse events. The following code shows you how you can read mouse position on mouse move.
  • Working with Windows RegistrySep 25, 2001. In this small tutorial, I'll show you how to read, write and delete Windows Registry.
  • File Uploading using XMLOct 09, 2001. This application is in ASP.NET which will allow you to upload images to an XML file which serves as the database for the uploaded files.
  • Encapsulation in C#Oct 12, 2001. In Object Oriented programming Encapsulation is the first pace. Encapsulation is the procedure of covering up of data and functions into a single unit (called class).
  • TextReader and TextWriter in C#Oct 16, 2001. This article covers the information of how to read or write (Unicode) character based data through TextReader and TextWriter.
  • Reading and Writing XML in C#Oct 29, 2001. In this tutorial, you will learn how to read and write XML documents in Microsoft .NET using C# language.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NETNov 09, 2001. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • Creating a User Control: .NET Toggle ControlNov 16, 2001. This is a C# User Control which re-creates the toggle used by XML, HTML, etc. files in the .NET Developer Studio. Just compile the control and drag it onto a form from the Windows Form Toolbox.
  • How To Open and Read an Excel Spreadsheet into a ListView in .NETNov 26, 2001. The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel.
  • Developing MDI Applications in C#Jan 16, 2002. In this article, I'll explain how to write MDI applications using C# and Windows Forms.
  • Sending WAP Site feedback from Mobile PhoneJan 16, 2002. The WAP (Wireless Apllication Protocol) is the leading standard for information services on wireless terminals.
  • .NET Framework and Web Services - Part 1Jan 28, 2002. The .NET Framework is a new computing platform designed to simplify Windows application development in the highly distributed environment of the Internet. Common Language Runtime (CLR) is the Heart of the .NET Framework.
  • World Weather Update on Your MobileFeb 04, 2002. In this article, I would like to discuss the "Weather Update" on Your Mobile.
  • Data Access through Web Services, Stored Procedures and SQL QueriesFeb 12, 2002. Web Services has been the most revolutionary aspect of the .NET framework developed by Microsoft. This article presents the three different modes through which data can be accessed viz. through Web services, stored procedures and SQL query using the power of ADO.NET and XML.
  • C#RIS : Tetris Game in C#Feb 14, 2002. I have written a Tetris clone that demonstrates how to use off-screen graphics buffering for smooth animation and utilizes a multi-dimensional array approach to designing a game grid. The classes are largely self-explanatory and the techniques are documented in code well enough to explain what is going on.
  • N-Tier Development with Microsoft .NET : Part IFeb 15, 2002. The purpose of this article is to examine a proof of concept on an architecture that follows the DNA pattern on concept only.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NETFeb 19, 2002. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • XML Web Services Type MarshalingFeb 20, 2002. This article illustrates that various data types can be passed to and returned from Web Service methods.
  • Authenticate Web Service Client - Windows ApplicationMar 04, 2002. This client application shows you how to access Authenticate Web service from a Windows application.
  • Authenticate Web ServiceMar 04, 2002. In this example we will build a web service that authenticates userid and password from an a very simple MS Access database. This web service exposes only one method to the client.
  • Creating and Opening Microsoft Word Document from .NET Using C#Mar 08, 2002. This article is being written in response to a couple inquiries on the question, "How do I open a word document from .NET?".
  • Reflecting Data to .NET Classes: Part IIMar 08, 2002. This article continue the series of "Reflecting Data to .NET Classes". In the first article, we discussed the concept “Reflecting Data”. The techniques behind it were also explained and demonstrated. The source of data demonstrated in this article will be XML documents.
  • Multi-threaded Web Applications - Case II: Port ScannerMar 12, 2002. This article continues the 4-parts series of Multi-threaded Web Applications. In the first part, I have demonstrated how you can use multi-threading with ASP.NET to make a web based search engine more responsive, and to reduce the time required to compose the result. In this article, I will demonstrate how you can apply the same technique to a web based port scanner.
  • .NET Beta 2 and Navigation in XML DocumentsMar 13, 2002. .NET Beta 2 was released yesterday at tech-ed, 2001, Atlanta. Many things have been changed in Beta 2 since Beta 1. In this article, I'll cover changes in XmlNavigator class replaced with XPathNavigator.
  • Saving and Reading Object to/from a DatabaseMar 25, 2002. An object is a memory stream, which is hard to write using the normal methods. In this article, I show how you can save objects in a database and read back from the database.
  • XML Signatures in Microsoft .NETMar 28, 2002. In this article we will explore XML Signature specification from W3C and its implementation in .NET using C#.
  • XML Signatures in Microsoft .NETMar 28, 2002. In this article we will explore XML Signature specification from W3C and its implementation in .NET using C#.
  • Poorman's Installation program in C# and .NETApr 08, 2002. Installation programs can be quite expensive these days. Although programs such as Wise and InstallShield have fantastic features and are fairly comprehensive, sometimes you just want to do the easy installation of copying and pasting files into a directory and perhaps placing a shortcut in the start menu.
  • Reflecting Data in .NET Classes - Part IV: From Database TableApr 08, 2002. In this article, we will be looking at how to "reflect" data from the most common data source - Database tables.
  • Creating Graphics with XMLApr 09, 2002. This article shows how to create images on the fly and uses XML to specify the properties of the images.
  • Using XML Based Configuration File in Windows Form ApplicationsApr 15, 2002. Often when building an application, a programmer wants to be able to change application settings without having to recompile the application.
  • Tracking Time in a Window ApplicationApr 15, 2002. The program reads from an XML file to get the data about names and birth dates, so it is easy to add or remove names without changing the code in case my son decides the program should include his pet dog or turtle.
  • XML Schema ValidatorApr 16, 2002. The XML Schema Validator checks if a given XML document is well formed and has a valid schema model.
  • Loading XML File in a TreeView Control using MultithreadingApr 19, 2002. There are many occasions when programmers need to develop multithreading applications, which can load big files in the background and let the user do data entry or other jobs without any interruption. In this article, I'll show you how to create multiple threads to load multiple files.
  • A C# SOAP Apache ClientApr 26, 2002. This part shall demonstrate how a simple web service can be created quickly using Visual Studio.Net.
  • XML Parser in C#Apr 30, 2002. This project gives you a head start to write XML parser in C#.
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • A Simple Contacts List for Pocket PCMay 19, 2002. I have implemented a simple contact list application that is capable of adding and viewing contact details.
  • Save and Restore Setings of a .NET Form using XMLMay 28, 2002. Even though there are advantages to writing to the registry, there are times when a programmer does not want to impact anything outside of the directory where the program resides.
  • Understanding Destructors in C#Jun 18, 2002. This article is about understanding the working concept of destructor in C#. As you read this article you will understand how different is C# destructor are when compared to C++ destructors.
  • An Editable GridView Control in C# and .NET - Part IIJun 19, 2002. In this article we will take advantage of the XML classes available to us to persist the GridView control that we talked about in our first article in this series. The two classes we utilize in our code are XmlTextWriter and XmlTextReader.
  • An Editable GridView Control in C# and .NET - Part II Persisting in XMLJun 19, 2002. In this article we will take advantage of the XML classes available to us to persist the GridView control that we talked about in our first article in this series. The two classes we utilize in our code are XmlTextWriter and XmlTextReader.
  • Editable GridView Control in C# and .NET - Part-III Printing the GridViewJun 24, 2002. In our last two articles, we talked about how to create an editable GridView and how to make it persistent in XML.
  • Editable ListBox ControlJul 01, 2002. A ListBox is a read-only list of items. But let us suppose your application needs to edit an item in a listbox at runtime.
  • Writing a Single Event Handler for Multiple ControlsJul 22, 2002. Writing a Single Event Handler for Multiple Controls by Giuseppe Russo. Jul 22, 2002. I have noticed that in many articles, I read, people use a longer method of clearing many textboxes, as well as handling more than one control at the same time.
  • Using Crystal Report ViewerJul 31, 2002. The following small application is designed to allow testing created reports with XML feeds used as data sources. .
  • RSS Feed Project in .NETAug 19, 2002. The RSS Feed project is aimed as demonstrating writing C# code to consume RSS feeds from the internet and putting the data from these RSS feeds into a database for you to use in your own applications.
  • PDF ConverterAug 26, 2002. This is a PDF converter tool which can reads text documents and converts them to PDF documents.
  • Listing all Computer in Active DirectoryAug 27, 2002. This application does one simple task. On any network where Microsoft Active Directory is used it will list all computers on the network. I faced this problem when I wanted to document all of the computers on the network using WMI .
  • Form Designer in C# and .NETSep 02, 2002. The FormMaker.NET Application has an undo feature for removing controls you just placed on the form and a fine tuning placement mechanism for positioning the control through the arrow keys.
  • XML News Feeds from Harrison LogicSep 04, 2002. This application provides a compilation of news headlines from many sources, using the MoreOver.com's XML service.
  • User Management Utility for Web Form Authentication.Sep 06, 2002. This article deals with the management of user login and password information for a Forms Authentication in ASP.NET.
  • TWINXBASE ServiceSep 09, 2002. This service scans in a directory by using FileWatcher component and when a file arrives, then the service will check the extension of the file, if the file has the extension .DBX then it will read the contents of the file and communicate with the database (C:\FILESERVICE\DB\MyDB.mdb) and insert / update / delete the records in the database -table.
  • MAPI Explorer in .NETSep 24, 2002. This code presents a simple MAPI explorer. You could read a mail messages from Exchange 2000 server using MAPI.
  • Remote Procedure Calls using SOAPOct 04, 2002. Here is the sample RPC (remote procedure call) using SOAP ( simple object access protocol).
  • Viewing and Writing XML Data using ADO.NET DataSetsNov 01, 2002. Based on a real world project this article shows how to handle XML data in .NET using C# DataSets and DataViews.
  • Alternative Simplified C# Property Syntax Dec 19, 2002. When I first read about properties in C#, I was a bit excited and a bit confused. I was glad to see so many inventions, including properties, designed to help programmers be more productive.
  • XSLT Transformations and XSLT Intellesense within the .NET IDE Jan 15, 2003. With XML and XSLT transformations becoming a large part of many business applications it would be beneficial to have this functionality in the .NET IDE. Following are the instructions for adding xslt transformations and intellesense to xslt documents to the .NET IDE.
  • An XML-RPC Package for .NETFeb 06, 2003. This package provides a simple XML-RPC client and server for C# applications. It's pure C#, using .Net for networking and XML functionality.
  • Hash Password GeneratorFeb 10, 2003. This visual tool generates the hashed password using either SHA1 or MD5 hashing algorithm depending on the choice you make. It will display the hashed password in the read only text box, it can also copy the hashed password to clipboard on your choice for easy paste operation.
  • Simple Registration Framework-XML signaturesFeb 13, 2003. This project provides simple tools, which add a "shareware like" registration support to .NET application.
  • Using C# and COM Interoperability to Extract from a UML tool into a Microsoft Word DocumentFeb 18, 2003. This article allows you to read the classes contained inside of WithClass 2000 into a Word Document using COM Interoperability for Word and COM Interoperability for WithClass and presents your classes in a kind of report.

About Reading-XML-Documents

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks