Archive for 'Coding & Development'

Hi all.

Today I read a topic related to XML, Serializing and Deserializing object, I enjoyed it because it provides an awesome way to convert objects (like classes) to XML. Before today, I used for loops and tags to build XML file, which needs alot of time and takes much of work when I need to modify the XML.

In this post, I will make a simple example to introduce this issue, I’ll use C#, if you need any help in VB.NET please send to me.

I will not talk about XML, I suppose you know whats the benefits and drawbacks of XML, but I will mention two important things when you need to serialize class to XML: › Continue reading…

Tags: , , , ,

JSON (pronounced like “Jason“): short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays. The official Internet media type for JSON is “application/json“. The JSON file extension is .json.

The JSON format is often used for serialization, transmitting structured data over a network connection. Its main application is in Ajax web application programming, where it serves as an alternative to the use of the XML format. JSON is supported by MSIE 5.5+, Mozilla/4.0 and most of other browsers.

Now let’s do some examples.

In Javascript we know how to declare and initiate an object: › Continue reading…

Tags: , , ,


Language Integrated Query (LINQ, pronounced “link“) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages.(#)

LINQ to XML is a built-in LINQ data provider that is implemented within the “System.Xml.Linq” namespace in .NET 3.5.

As Microsoft says, LINQ to XML provides a clean programming model that enables you to read, construct and write XML data. LINQ to XML can be used to perform LINQ queries over XML to retrieve from your local server or from a remote HTTP URL or web-service, or from any in-memory XML content.

They says that LINQ to XML provides much richer (and easier) querying and data shaping support than the low-level XmlReader/XmlWriter API in .NET. It also ends up being much more efficient (and uses much less memory) than the DOM API that XmlDocument provides.

Today I will give a simple example that uses LINQ to XML (VB.NET and C#) › Continue reading…

Tags: , , , , , ,
Back to top