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






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

Parameters

node
The node to serialize.
formatting
Indicates how the output is formatted.
omitRootObject
Omits writing the root object.

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