XmlNodeConverter Class |
Namespace: Newtonsoft.Json.Converters
public class XmlNodeConverter : JsonConverter
The XmlNodeConverter type exposes the following members.
| Name | Description | |
|---|---|---|
| XmlNodeConverter | Initializes a new instance of the XmlNodeConverter class |
| Name | Description | |
|---|---|---|
| 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 produced multiple root elements.
| |
| EncodeSpecialCharacters |
Gets or sets a value indicating whether to encode special characters when converting JSON to XML.
If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify
XML namespaces, attributes or processing directives. Instead special characters are encoded and written
as part of the XML element name.
| |
| OmitRootObject |
Gets or sets a value indicating whether to write the root JSON object.
| |
| WriteArrayAttribute |
Gets or sets a value to indicate whether to write the Json.NET array attribute.
This attribute helps preserve arrays when converting the written XML back to JSON.
|
| Name | Description | |
|---|---|---|
| CanConvert |
Determines whether this instance can convert the specified value type.
(Overrides JsonConverterCanConvert(Type).) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ReadJson |
Reads the JSON representation of the object.
(Overrides JsonConverterReadJson(JsonReader, Type, Object, JsonSerializer).) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| WriteJson |
Writes the JSON representation of the object.
(Overrides JsonConverterWriteJson(JsonWriter, Object, JsonSerializer).) |