jmsudar.DotNet.Xml
1.2.0
dotnet add package jmsudar.DotNet.Xml --version 1.2.0
NuGet\Install-Package jmsudar.DotNet.Xml -Version 1.2.0
<PackageReference Include="jmsudar.DotNet.Xml" Version="1.2.0" />
paket add jmsudar.DotNet.Xml --version 1.2.0
#r "nuget: jmsudar.DotNet.Xml, 1.2.0"
// Install jmsudar.DotNet.Xml as a Cake Addin
#addin nuget:?package=jmsudar.DotNet.Xml&version=1.2.0
// Install jmsudar.DotNet.Xml as a Cake Tool
#tool nuget:?package=jmsudar.DotNet.Xml&version=1.2.0
jmsudar.DotNet.Xml
jmsudar.DotNet.Xml is a .NET library providing efficient and easy-to-use XML serialization and deserialization methods with no external third-party dependencies.
Features
- Robust XML serialization and deserialization.
- Support for serializing to and deserializing from both strings and files.
- Integration of XML namespaces during serialization.
- Custom exception handling for detailed error feedback during serialization and deserialization.
Getting Started
Installation
To install the jmsudar.DotNet.Json library, use the following NuGet command:
dotnet add package jmsudar.DotNet.Xml
Alternately, find the file through the NuGet explorer in Visual Studio.
Usage
Here's a quick example to get you started:
using System;
using jmsudar.DotNet.Xml;
public class Program
{
public class ExampleObject
{
public string Name { get; set; }
public int Age { get; set; }
}
public static void Main()
{
var myObject = new ExampleObject { Name = "Jane Doe", Age = 29 };
string xmlString = XML.Serialize(myObject);
Console.WriteLine(xmlString);
var deserializedObject = XML.Deserialize<ExampleObject>(xmlString);
Console.WriteLine($"Name: {deserializedObject.Name}, Age: {deserializedObject.Age}");
}
}
License
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
Contact
JMSudar - code.jmsudar@gmail.com
Project Link - https://github.com/jmsudar/DotNet-XML
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.