Greentube.Serialization.Xml 1.0.0-alpha2

An XML implementation of ISerializer provided by Greentube.Serialization

This is a prerelease version of Greentube.Serialization.Xml.
Install-Package Greentube.Serialization.Xml -Version 1.0.0-alpha2
dotnet add package Greentube.Serialization.Xml --version 1.0.0-alpha2
paket add Greentube.Serialization.Xml --version 1.0.0-alpha2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Greentube.Serialization.Xml NuGet

Implementation of ISerializer with System.Xml.XmlSerializer.

This library targets netstandard1.3 since that's the version System.Xml.XmlSerializer depends on.

No other dependencies besides Greentube.Serialization and System.Xml.XmlSerializer are introduced via this package.

var xml = new XmlSerializer(new XmlOptions());

Options

The default namespace can be defined via:

var xml = new XmlSerializer(
    new XmlOptions
    {
        DefaultNamespace = "namespace"
    });

A factory delegate can be used also:

var xml = new XmlSerializer(
    new XmlOptions
    {
        Factory = type => new XmlSerializer(type, new XmlRootAttribute("messaging"))
    });

Greentube.Serialization.Xml NuGet

Implementation of ISerializer with System.Xml.XmlSerializer.

This library targets netstandard1.3 since that's the version System.Xml.XmlSerializer depends on.

No other dependencies besides Greentube.Serialization and System.Xml.XmlSerializer are introduced via this package.

var xml = new XmlSerializer(new XmlOptions());

Options

The default namespace can be defined via:

var xml = new XmlSerializer(
    new XmlOptions
    {
        DefaultNamespace = "namespace"
    });

A factory delegate can be used also:

var xml = new XmlSerializer(
    new XmlOptions
    {
        Factory = type => new XmlSerializer(type, new XmlRootAttribute("messaging"))
    });

Version History

Version Downloads Last updated
1.0.0-alpha2 131 11/26/2017
1.0.0-alpha 77 11/25/2017