Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json
JsonConvert Class
JsonConvert Methods
SerializeXmlNode Method
SerializeXmlNode Method (XmlNode)
SerializeXmlNode Method (XmlNode, Formatting)
SerializeXmlNode Method (XmlNode, Formatting, Boolean)
JsonConvert
SerializeXmlNode Method (XmlNode, Formatting)
Serializes the
XmlNode
to a JSON string using formatting.
Namespace:
Newtonsoft.Json
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
static
string
SerializeXmlNode
(
XmlNode
node
,
Formatting
formatting
)
Parameters
node
Type:
System.Xml
XmlNode
The node to serialize.
formatting
Type:
Newtonsoft.Json
Formatting
Indicates how the output should be formatted.
Return Value
Type:
String
A JSON string of the
XmlNode
.
See Also
Reference
JsonConvert Class
SerializeXmlNode Overload
Newtonsoft.Json Namespace
Json.NET Home