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
msgstring
Returns
- T
Type Parameters
T
GetXmlSerializerByType(Type)
public static XmlSerializer GetXmlSerializerByType(Type type)
Parameters
typeType
Returns
ToXml<T>(T)
public static string ToXml<T>(T status)
Parameters
statusT
Returns
Type Parameters
T
Validate(XmlSchemaSet, string, bool)
public static bool Validate(XmlSchemaSet schemas, string msg, bool warn_as_error = false)
Parameters
schemasXmlSchemaSetmsgstringwarn_as_errorbool