// To convert an XML node contained in string xml into a JSON string
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
string jsonText = JsonConvert.SerializeXmlNode(doc);
// To convert JSON text contained in string json into an XML node
XmlDocument doc = JsonConvert.DeserializeXmlNode(json);
Sunday, August 18, 2019
How to convert JSON to XML or XML to JSON?
Subscribe to:
Post Comments (Atom)
How to register multiple implementations of the same interface in Asp.Net Core?
Problem: I have services that are derived from the same interface. public interface IService { } public class ServiceA : IService { ...
-
Search functionality is very useful for the data list. It helps to find the relevant records quickly from the database. Search term highli...
-
Today, I will learn you how to store file with validation in laravel 6. I will add validation with image upload in laravel 6. I will add i...
No comments:
Post a Comment