Introduction: In this article, i am going to explain about What are the differences between json object notation and xml. Main: visit the article click the link at bottom, Since the popularization of JSON for use with Ajax, there’s been a lot of controversy over which is “better.” Generally, there seems to be a lot [...]
Category Archives: XML
Differences Similarities Between Json and Xml/ Json versus Xml
Posted by on October 19, 2010
0 comments
How to Convert XML into String.
Posted by james on October 2, 2009
Comments Off
We know XML documents are structured as hierarchies of information.We can easily convert xml into string using xmltextwriter. C# Code: string Convertedstring = null; MemoryStream ms = new MemoryStream(); XmlSerializer xmlS = null; xmlS = new XmlSerializer (inputxml.GetType()); XmlTextWriter tw = new XmlTextWriter (ms,EnCoding.UTF8); xmlS.Serialize(tw,inputxml); ms = (MemoryStream) tw.BaseStream; //Converting ms to string string Convertedstring [...]