All C# extension methods for type xelement
-
TryGetAttribute
Try/Get pattern for XDocument attributes
-
GetNestedXml
This one allows you to get nested XML from within a node. Let's say you're parsing an HTML file using the XDocument class and you want to pull out the nested code including tags. This is what you can use!
-
FindParent(string parentName) - For XElement
Find parent XElement from a provided name. Returns null if no match