WCF-Xtensions Class Reference for Mono
SerializeXmlNode(XmlNode,Formatting) Method






The node to serialize.
Indicates how the output is formatted.
Serializes the XML node to a JSON string using formatting.
Syntax
'Declaration
 
Public Overloads Shared Function SerializeXmlNode( _
   ByVal node As System.Xml.XmlNode, _
   ByVal formatting As Formatting _
) As System.String
'Usage
 
Dim node As System.Xml.XmlNode
Dim formatting As Formatting
Dim value As System.String
 
value = JsonConvert.SerializeXmlNode(node, formatting)
public static System.string SerializeXmlNode( 
   System.Xml.XmlNode node,
   Formatting formatting
)
public function SerializeXmlNode( 
    node: System.Xml.XmlNode;
    formatting: Formatting
): System.String; static; 
public static function SerializeXmlNode( 
   node : System.Xml.XmlNode,
   formatting : Formatting
) : System.String;
public: static System.string* SerializeXmlNode( 
   System.Xml.XmlNode* node,
   Formatting formatting
) 
public:
static System.String^ SerializeXmlNode( 
   System.Xml.XmlNode^ node,
   Formatting formatting
) 

Parameters

node
The node to serialize.
formatting
Indicates how the output is formatted.

Return Value

A JSON string of the XmlNode.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

JsonConvert Class
JsonConvert Members
Overload List

Send Feedback