UtilJsonConvertToXmlDocument Method
Converts a JSON String to XmlDocument.
Namespace: DevCase.Core.DataProcessing.JsonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static XmlDocument ConvertToXmlDocument(
string json,
Encoding enc
)
Public Shared Function ConvertToXmlDocument (
json As String,
enc As Encoding
) As XmlDocument
Dim json As String
Dim enc As Encoding
Dim returnValue As XmlDocument
returnValue = UtilJson.ConvertToXmlDocument(json,
enc)
public:
static XmlDocument^ ConvertToXmlDocument(
String^ json,
Encoding^ enc
)
static member ConvertToXmlDocument :
json : string *
enc : Encoding -> XmlDocument
No code example is currently available or this language may not be supported.
- json String
-
The source JSON string.
- enc Encoding
-
The character encoding that must be used to read the JSON string.
XmlDocument
The resulting
XmlDocument.
This is a code example.
No code example is currently available or this language may not be supported.
Dim json As String = <a>
{
"colorsArray":[{
"colorName":"red",
"hexValue":"#f00"
},
{
"colorName":"green",
"hexValue":"#0f0"
},
{
"colorName":"blue",
"hexValue":"#00f"
},
{
"colorName":"cyan",
"hexValue":"#0ff"
},
{
"colorName":"magenta",
"hexValue":"#f0f"
},
{
"colorName":"yellow",
"hexValue":"#ff0"
},
{
"colorName":"black",
"hexValue":"#000"
}
]
}</a>.Value
Dim xdoc As XmlDocument = ConvertToXmlDocument(json, Encoding.UTF8)
Console.WriteLine(xml.InnerXml)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.