API Reference
Class
XmlExtensions
XML helper extensions used by ADMX/ADML processing.
Inheritance
- Object
- XmlExtensions
Methods
public static String AttributeOrDefault(XElement element, XName name, String defaultValue) #Returns:
StringReturns the attribute value when present; otherwise returns defaultValue.
Parameters
- element System.Xml.Linq.XElement
- Source XML element.
- name System.Xml.Linq.XName
- Attribute name.
- defaultValue System.String
- Default value returned when the attribute is not set.
public static String AttributeOrNull(XElement element, XName name) #Returns:
StringReturns the value of the attribute with the given name or null when the attribute is absent.
Parameters
- element System.Xml.Linq.XElement
- Source XML element.
- name System.Xml.Linq.XName
- Attribute name.