Table of Contents

Class XmlUtils

Namespace
Sportradar.LiveData.Sdk.Common.Utils
Assembly
Sportradar.LiveData.Sdk.dll
public static class XmlUtils
Inheritance
XmlUtils
Inherited Members

Methods

Deserialize<T>(string)

public static T Deserialize<T>(string msg) where T : IProtocolBase

Parameters

msg string

Returns

T

Type Parameters

T

GetXmlSerializerByType(Type)

public static XmlSerializer GetXmlSerializerByType(Type type)

Parameters

type Type

Returns

XmlSerializer

ToXml<T>(T)

public static string ToXml<T>(T status)

Parameters

status T

Returns

string

Type Parameters

T

Validate(XmlSchemaSet, string, bool)

public static bool Validate(XmlSchemaSet schemas, string msg, bool warn_as_error = false)

Parameters

schemas XmlSchemaSet
msg string
warn_as_error bool

Returns

bool