Json.NET - Quick Starts & API Documentation
DeserializeXmlNode Method (value, deserializeRootElementName, writeArrayAttribute)
Namespaces ► Newtonsoft.Json ► JsonConvert ► DeserializeXmlNode(String, String, Boolean)
Deserializes the XmlNode from a JSON string nested in a root elment.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static XmlDocument DeserializeXmlNode( string value, string deserializeRootElementName, bool writeArrayAttribute )
Public Shared Function DeserializeXmlNode ( _ value As String, _ deserializeRootElementName As String, _ writeArrayAttribute As Boolean _ ) As XmlDocument
public: static XmlDocument^ DeserializeXmlNode( String^ value, String^ deserializeRootElementName, bool writeArrayAttribute )
Parameters
- value (String)
- The JSON string.
- deserializeRootElementName (String)
- The name of the root element to append when deserializing.
- writeArrayAttribute (Boolean)
- A flag to indicate whether to write the Json.NET array attribute. This attribute helps preserve arrays when converting the written XML back to JSON.
Return Value
The deserialized XmlNode