XML Articles

Creating a XML document with C#

Just try this short piece of code, to make an XML document on the fly.In C# working with XML through the System.XML is very easy. using System; using System.Xml; namespace PavelTsekov { class MainClass { XmlDocument xmldoc; XmlNode xmlnode; XmlElement xmlelem; XmlElement xmlelem2; XmlText xmltext; static void Main(string[] args) { MainClass app=new MainClass(); } public [...]

Read more

File Uploading Using Xml

    This application is in asp.net which willallow you to upload images to an XML file which serves as the databasefor the uploaded files. You can retrieve these files along theirproperties from the xml file. In this application I have made use of asp.netWeb controls as well as HTML controls. I have used a [...]

Read more

XSLT / XML / C#

Hello everyone. In this source code I am going to show howto apply xslt to data coming from a database in xml format. using System;using System.Collections;using System.Data;using System.Data.SqlClient;using System.Xml;using System.Xml.Xsl; public class XsltTransform{ public static void Transform() { SqlConnection nwindConn = new SqlConnection("Data Source=INMUMIS123;database=northwind;uid=sa;pwd=;"); nwindConn.Open(); DataSet custDS = new DataSet("CustomerDataSet"); SqlDataAdapter custDA = new SqlDataAdapter("SELECT [...]

Read more

C# XML Stream Project

I have developed a C# component that convertsobjects to an XML stream and vice versa. The main .NET focus is onSystem, System.Reflection and System.XML assemblies. The user hasaccess to a default constructor and four public methods; two methods tocreate an XML stream or file from an object and two that creates anobject from from an [...]

Read more

Processing XML Documents in C#

  The major objectives of this article are todemonstrate how to write an XML document from a database query, andsubsequently, how to read an XML document using C#? Obviously, we willhave to use the ADO.Net to connect to the database. The Dot.Net DataSetclass has two convenient methods to read and write XML documents. Theseare: DataSet.WriteXml(fileStream), [...]

Read more
  • Page 2 of 2
  • <
  • 1
  • 2