Wednesday, November 27, 2013

Using of XML for dynamic parameter passing

In this blog my main concern is to describe, how to use XML reader as dynamic parameter passer.

Basically XML files use the classes and methods inside the System.XML namespace of the .NET Framework.

System.Xml namespace is the reference main class. To read xml files, we can use the XmlReader class.

Basically, reading xml files using XmlReader requires you to look carefully at the structure of your XML.

Ex XML code:

Ex C# code:

So the above Object Array we can use as parameters.

I konw you may wonder how we can use as dynamic parameter. If  the program is depending on custom based we can customize the xml without changing the backend code.

I think it will be really easy to maintain mutiple customer based applications.

Enjoy...

b' Happiii always,,,