Method ExtXml.ElemOrAdd(+ 1 overload)
Overload
Gets the first found direct child element. If not found, adds new empty child element.
public static XElement ElemOrAdd(this XElement t, XName name)
Parameters
Returns
|
XElement
The found or added element. |
Overload(top)
Gets the first found direct child element that has the specified attribute. If not found, adds new child element with the attribute. More info: ExtXml.Elem
public static XElement ElemOrAdd(this XElement t, XName name, XName attributeName, string attributeValue = null, bool ignoreCase = false)
Parameters
Returns
|
XElement
The found or added element. |