Keep it Simple

// practice, the distance between dream and achievement

Tag: Serialization (page 1 of 2)

What is XSLT?

XSLT (Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML documents or other formats such as HTML for web pages, plain text or XSL Formatting Objects, which may subsequently be converted to other formats, such as PDF, PostScript and PNG.

Continue reading

What is XPath?

XML is simply markup for data. That’s it. XML is not a magic wand; it does not specify how data is transmitted over the wire, it does not specify how data is stored. XML simply determines the format of the data: what you do with the data is up to you. That said, the real power behind XML is not solely its ability to represent data: XML’s real power lies in ancillary technologies that, when combined with XML, provide robust solutions, and XPath is one of those ancillary technologies.

Continue reading

Customizing XmlTextWriter

We all know that XmlTextWriter renders XML data to a string. This string remains in the memory of the C# program. However if you want perform some string manipulation as a part of the XML to a string generation, we you have to extend the XmlTextWriter and override its methods as per the need.

Continue reading

Converting Object into JSON in C#

In this post we are going to see how we can convert a object into JSON string.

You don’t need to download an additional library to serialize/deserialize your objects to/from JSON. Since .NET 3.5, .NET can do it natively.

For this demo we are using console application so we have to add System.Web and System.Web.Extensions reference to access the JavaScript Searilizer class through which we are going to convert this object into JSON string.

Continue reading

Older posts

© 2017 Keep it Simple

Theme by Anders NorenUp ↑