-
-
Notifications
You must be signed in to change notification settings - Fork 5
Extensible Markup Language
Taiizor edited this page Mar 1, 2023
·
3 revisions
The XmlExtension
class is a collection of extension methods for XML manipulation. This class contains the following methods:
public static string ToJson(string Xml = MXXM.Xml, bool Format = MXXM.Format, bool Root = MXXM.Root)
Converts an XML string to a JSON string.
-
Xml
(optional): The XML string to convert. Default value isMXXM.Xml
. -
Format
(optional): A flag indicating whether the output should be indented or not. Default value isMXXM.Format
. -
Root
(optional): A flag indicating whether to include the root element in the output. Default value isMXXM.Root
.
A JSON string representing the XML document.
-
E
: If an exception occurs while converting the XML to JSON.
public static Task<string> ToJsonAsync(string Xml = MXXM.Xml, bool Format = MXXM.Format, bool Root = MXXM.Root)
Converts an XML string to a JSON string asynchronously.
-
Xml
(optional): The XML string to convert. Default value isMXXM.Xml
. -
Format
(optional): A flag indicating whether the output should be indented or not. Default value isMXXM.Format
. -
Root
(optional): A flag indicating whether to include the root element in the output. Default value isMXXM.Root
.
A task representing the asynchronous operation that returns a JSON string representing the XML document.
-
E
: If an exception occurs while converting the XML to JSON.
Beautifies an XML string.
-
Xml
(optional): The XML string to beautify. Default value isMXXM.Xml
.
A beautified XML string.
-
E
: If an exception occurs while beautifying the XML string.
Beautifies an XML string asynchronously.
-
Xml
(optional): The XML string to beautify. Default value isMXXM.Xml
.
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language