SerializeXmlNode Method (node, formatting, omitRootObject)

Json.NET

Json.NET - Quick Starts & API Documentation SerializeXmlNode Method (node, formatting, omitRootObject)
NamespacesNewtonsoft.JsonJsonConvertSerializeXmlNode(XmlNode, Formatting, Boolean)
Serializes the XML node to a JSON string.
Declaration Syntax
C# Visual Basic Visual C++
public static string SerializeXmlNode(
	XmlNode node,
	Formatting formatting,
	bool omitRootObject
)
Public Shared Function SerializeXmlNode ( _
	node As XmlNode, _
	formatting As Formatting, _
	omitRootObject As Boolean _
) As String
public:
static String^ SerializeXmlNode(
	XmlNode^ node, 
	Formatting formatting, 
	bool omitRootObject
)
Parameters
node (XmlNode)
The node to serialize.
formatting (Formatting)
Indicates how the output is formatted.
omitRootObject (Boolean)
Omits writing the root object.
Return Value
A JSON string of the XmlNode.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)