Click or drag to resize
XElementExtensions Class
Extension methods for XElement type to be able query XML data with ignoring case.
Inheritance Hierarchy
SystemObject
  CMS.HelpersXElementExtensions

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static class XElementExtensions

The XElementExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetAttribute
Gets the attribute of element element given by attributeName. Ignores case in attribute name and defined namespace.
Public methodStatic memberGetAttributeStringValue
Gets the attribute value as string type from element source data given by attributeName. If no attribute is found or source data are not provided returns defaultValue default value. Ignores case in attribute name and defined namespace.
Public methodStatic memberGetAttributeValueT
Gets the attribute value of T type of element element given by attributeName. If no attribute is found or source data are not provided returns defaultValue default value. Ignores case in attribute name and defined namespace.
Public methodStatic memberGetElement
Gets the child element of element element given by elementName. Ignores case in element name and defined namespace.
Public methodStatic memberGetElements
Gets the child elements from element source XML data given by elementName. Ignores case in element name and defined namespace.
Top
See Also