jmsudar.DotNet.Xml 1.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package jmsudar.DotNet.Xml --version 1.7.0
                    
NuGet\Install-Package jmsudar.DotNet.Xml -Version 1.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="jmsudar.DotNet.Xml" Version="1.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jmsudar.DotNet.Xml" Version="1.7.0" />
                    
Directory.Packages.props
<PackageReference Include="jmsudar.DotNet.Xml" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add jmsudar.DotNet.Xml --version 1.7.0
                    
#r "nuget: jmsudar.DotNet.Xml, 1.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package jmsudar.DotNet.Xml@1.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=jmsudar.DotNet.Xml&version=1.7.0
                    
Install as a Cake Addin
#tool nuget:?package=jmsudar.DotNet.Xml&version=1.7.0
                    
Install as a Cake Tool

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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated
1.10.0 181 7/20/2025
1.9.0 142 5/5/2025
1.8.0 110 4/26/2025
1.7.0 110 2/24/2025
1.6.0 101 8/3/2024
1.5.0 86 7/25/2024
1.4.0 125 7/21/2024
1.2.0 139 6/2/2024
1.0.0 129 5/24/2024