Json.NET - Quick Starts & API Documentation
SerializeXmlNode Method (node, formatting)
Namespaces ► Newtonsoft.Json ► JsonConvert ► SerializeXmlNode(XmlNode, Formatting)
Serializes the XML node to a JSON string.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static string SerializeXmlNode( XmlNode node, Formatting formatting )
Public Shared Function SerializeXmlNode ( _ node As XmlNode, _ formatting As Formatting _ ) As String
public: static String^ SerializeXmlNode( XmlNode^ node, Formatting formatting )
Parameters
- node (XmlNode)
- The node to serialize.
- formatting (Formatting)
- Indicates how the output is formatted.
Return Value
A JSON string of the XmlNode.