Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityServer.​Saml.​Xml.​XmlHelpers

Assembly: Duende.IdentityServer

Inheritance: object → XmlHelpers

Xml utilities

Methods

public static string
CreateId​()
Create a valid xs:ID
Returns Id as string
public static XmlTraverser
GetXmlTraverser​(System.​Xml.​XmlElement xmlElement)
Get an Xml traverser for an XmlDocument
Returns XmlTraverser located at DocumentElement
xmlElement Source XmlElement. Typically the document element
public static void
SetAttributeIfValue​(System.​Xml.​XmlElement element, string name, string value)
Sets an attribute if the value is not null.
element Element to set attribute on.
name Name of attribute
value String value. If null, no attribute is set/created
public static void
SetAttribute​(System.​Xml.​XmlElement element, string name, Common.​DateTimeUtc value)
Sets a DateTimeUtc attribute in the correct format.
element Element to set attribute on.
name Name of attribute
value DateTimeUtc value.
public static void
SetAttributeIfValue​(System.​Xml.​XmlElement element, string name, Common.​DateTimeUtc? value)
Sets a DateTimeUtc attribute in the correct format, if the value is not null (HasValue)
element Element to set attribute on.
name Name of attribute
value DateTimeUtc value.
public static void
SetAttribute​(System.​Xml.​XmlElement element, string name, System.​TimeSpan value)
Sets a TimeSpan attribute in the correct format.
element Element to set attribute on.
name Name of attribute
value TimeSpan value.
public static void
SetAttributeIfValue​(System.​Xml.​XmlElement element, string name, System.​TimeSpan? value)
Sets a TimeSpan attribute in the correct format, if the value is not null (HasValue)
element Element to set attribute on.
name Name of attribute
value TimeSpan value.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object