2022-02-10 16:26:09 +00:00
|
|
|
namespace ASC.FederatedLogin.Helpers;
|
|
|
|
|
|
|
|
public static class XmlExtensions
|
2019-06-06 13:34:46 +00:00
|
|
|
{
|
2022-02-10 16:26:09 +00:00
|
|
|
public static string SelectNodeValue(this XPathNavigator nav, string xpath)
|
2019-06-06 13:34:46 +00:00
|
|
|
{
|
2022-02-10 16:26:09 +00:00
|
|
|
var node = nav.SelectSingleNode(xpath);
|
2022-02-10 16:06:48 +00:00
|
|
|
|
2022-02-10 16:26:09 +00:00
|
|
|
return node != null ? node.Value : string.Empty;
|
2019-06-06 13:34:46 +00:00
|
|
|
}
|
2022-02-10 16:26:09 +00:00
|
|
|
}
|