Json.NET - Quick Starts & API Documentation
XmlNodeConverter Class
Namespaces ► Newtonsoft.Json.Converters ► XmlNodeConverter
Converts XML to and from JSON.

C# | Visual Basic | Visual C++ |
public class XmlNodeConverter : JsonConverter
Public Class XmlNodeConverter _ Inherits JsonConverter
public ref class XmlNodeConverter : public JsonConverter

All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
![]() |
XmlNodeConverter()()()() |
Initializes a new instance of the XmlNodeConverter class
|
![]() |
CanConvert(Type) |
Determines whether this instance can convert the specified value type.
(Overrides JsonConverter.CanConvert(Type).) |
![]() |
CanRead |
Gets a value indicating whether this JsonConverter can read JSON.
(Inherited from JsonConverter.) |
![]() |
CanWrite |
Gets a value indicating whether this JsonConverter can write JSON.
(Inherited from JsonConverter.) |
![]() |
DeserializeRootElementName |
Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.
|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetSchema()()()() |
Gets the JsonSchema of the JSON produced by the JsonConverter.
(Inherited from JsonConverter.) |
![]() |
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
OmitRootObject |
Gets or sets a value indicating whether to write the root JSON object.
|
![]() |
ReadJson(JsonReader, Type, Object, JsonSerializer) |
Reads the JSON representation of the object.
(Overrides JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializer).) |
![]() |
ToString()()()() | (Inherited from Object.) |
![]() |
WriteArrayAttribute |
Gets or sets 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.
|
![]() |
WriteJson(JsonWriter, Object, JsonSerializer) |
Writes the JSON representation of the object.
(Overrides JsonConverter.WriteJson(JsonWriter, Object, JsonSerializer).) |

Object | ||
![]() |
JsonConverter | |
![]() |
XmlNodeConverter |