TestimoX

API Reference

Class

XmlExtensions

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

XML helper extensions used by ADMX/ADML processing.

Inheritance

  • Object
  • XmlExtensions

Methods

public static String AttributeOrDefault(XElement element, XName name, String defaultValue) #
Returns: String

Returns the attribute value when present; otherwise returns defaultValue.

Parameters

element System.Xml.Linq.XElement requiredposition: 0
Source XML element.
name System.Xml.Linq.XName requiredposition: 1
Attribute name.
defaultValue System.String requiredposition: 2
Default value returned when the attribute is not set.
public static String AttributeOrNull(XElement element, XName name) #
Returns: String

Returns the value of the attribute with the given name or null when the attribute is absent.

Parameters

element System.Xml.Linq.XElement requiredposition: 0
Source XML element.
name System.Xml.Linq.XName requiredposition: 1
Attribute name.