# C1.LiveLinq.LiveViews.Xml.XmlExtensions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_LiveLinq_LiveViews_Xml_XmlExtensions" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions" class="text-break">XmlExtensions Class
</h1>
  <div class="markdown level0 summary"><p>Provides a set of static (extension) methods for LiveLinq to XML.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">XmlExtensions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.LiveLinq.LiveViews.Xml.html">C1.LiveLinq.LiveViews.Xml</a></h6>
  <h6><strong>Assembly</strong>: C1.LiveLinq.4.8.dll</h6>
  <h5 id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class XmlExtensions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module XmlExtensions</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_AsLive_System_Xml_Linq_XDocument_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.AsLive(System.Xml.Linq.XDocument)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.AsLive.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_AsLive_System_Xml_Linq_XDocument_">AsLive(XDocument)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a view based on the specified XML document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_AsLive_System_Xml_Linq_XElement_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.AsLive(System.Xml.Linq.XElement)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.AsLive.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_AsLive_System_Xml_Linq_XElement_">AsLive(XElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a view based on the specified XML element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Attributes_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Attributes(C1.LiveLinq.LiveViews.View{System.Xml.Linq.XElement})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Attributes.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Attributes_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__">Attributes(View&lt;XElement&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing the collection of the attributes of every element in the source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Attributes_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__System_Xml_Linq_XName_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Attributes(C1.LiveLinq.LiveViews.View{System.Xml.Linq.XElement},System.Xml.Linq.XName)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Attributes.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Attributes_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__System_Xml_Linq_XName_">Attributes(View&lt;XElement&gt;, XName)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing a filtered collection of the attributes of every element in the source view.
Only attributes that have a matching <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xname">XName</a> are included.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_BeginUpdate_System_Xml_Linq_XContainer_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.BeginUpdate(System.Xml.Linq.XContainer)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.BeginUpdate.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_BeginUpdate_System_Xml_Linq_XContainer_">BeginUpdate(XContainer)</a>
        </td>
        <td class="markdown level1 summary"><p>Suspends notifications while massive changes are being made to an XML node and its descendants.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantNodesAndSelf_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantNodesAndSelf(C1.LiveLinq.LiveViews.View{System.Xml.Linq.XElement})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantNodesAndSelf.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantNodesAndSelf_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__">DescendantNodesAndSelf(View&lt;XElement&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing the collection of nodes that contains every element in the source view,
and the descendent nodes of every element in the source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantNodes__1_C1_LiveLinq_LiveViews_View___0__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantNodes``1(C1.LiveLinq.LiveViews.View{``0})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantNodes.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantNodes__1_C1_LiveLinq_LiveViews_View___0__">DescendantNodes&lt;T&gt;(View&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing the collection of the descendent nodes of every element
and document in the source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantsAndSelf_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantsAndSelf(C1.LiveLinq.LiveViews.View{System.Xml.Linq.XElement})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantsAndSelf.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantsAndSelf_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__">DescendantsAndSelf(View&lt;XElement&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing a collection of elements that contains every element in the source view,
and the descendent elements of every element in the source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantsAndSelf_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__System_Xml_Linq_XName_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantsAndSelf(C1.LiveLinq.LiveViews.View{System.Xml.Linq.XElement},System.Xml.Linq.XName)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantsAndSelf.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_DescendantsAndSelf_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XElement__System_Xml_Linq_XName_">DescendantsAndSelf(View&lt;XElement&gt;, XName)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing a filtered collection of elements that contains
every element in the source view, and the descendants of every element in the source view.
Only elements that have a matching <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xname">XName</a> are included.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Descendants__1_C1_LiveLinq_LiveViews_View___0__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Descendants``1(C1.LiveLinq.LiveViews.View{``0})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Descendants.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Descendants__1_C1_LiveLinq_LiveViews_View___0__">Descendants&lt;T&gt;(View&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing the collection of elements that contains the descendent elements of every
element and document in the source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Descendants__1_C1_LiveLinq_LiveViews_View___0__System_Xml_Linq_XName_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Descendants``1(C1.LiveLinq.LiveViews.View{``0},System.Xml.Linq.XName)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Descendants.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Descendants__1_C1_LiveLinq_LiveViews_View___0__System_Xml_Linq_XName_">Descendants&lt;T&gt;(View&lt;T&gt;, XName)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing a filtered collection of elements
that contains the descendent elements of every element and document in the source view.
Only elements that have a matching <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xname">XName</a> are included.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Elements__1_C1_LiveLinq_LiveViews_View___0__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Elements``1(C1.LiveLinq.LiveViews.View{``0})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Elements.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Elements__1_C1_LiveLinq_LiveViews_View___0__">Elements&lt;T&gt;(View&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing the collection of child elements of every element and document in the source view..</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Elements__1_C1_LiveLinq_LiveViews_View___0__System_Xml_Linq_XName_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Elements``1(C1.LiveLinq.LiveViews.View{``0},System.Xml.Linq.XName)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Elements.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Elements__1_C1_LiveLinq_LiveViews_View___0__System_Xml_Linq_XName_">Elements&lt;T&gt;(View&lt;T&gt;, XName)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing filtered collection of child elements of every element and document in the source view.
Only elements that have a matching <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xname">XName</a> are included.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_EndUpdate_System_Xml_Linq_XContainer_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.EndUpdate(System.Xml.Linq.XContainer)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.EndUpdate.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_EndUpdate_System_Xml_Linq_XContainer_">EndUpdate(XContainer)</a>
        </td>
        <td class="markdown level1 summary"><p>Ends notification suspension started with <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.BeginUpdate.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_BeginUpdate_System_Xml_Linq_XContainer_">BeginUpdate(XContainer)</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XAttribute_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute(System.Xml.Linq.XAttribute)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XAttribute_">IndexedAttribute(XAttribute)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML attribute. The hint has default action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XAttribute_C1_LiveLinq_IndexingHintAction_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute(System.Xml.Linq.XAttribute,C1.LiveLinq.IndexingHintAction)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XAttribute_C1_LiveLinq_IndexingHintAction_">IndexedAttribute(XAttribute, IndexingHintAction)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML attribute. The hint has specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XElement_System_Xml_Linq_XName_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute(System.Xml.Linq.XElement,System.Xml.Linq.XName)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XElement_System_Xml_Linq_XName_">IndexedAttribute(XElement, XName)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML attribute. The hint has default action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XElement_System_Xml_Linq_XName_C1_LiveLinq_IndexingHintAction_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute(System.Xml.Linq.XElement,System.Xml.Linq.XName,C1.LiveLinq.IndexingHintAction)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedAttribute.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedAttribute_System_Xml_Linq_XElement_System_Xml_Linq_XName_C1_LiveLinq_IndexingHintAction_">IndexedAttribute(XElement, XName, IndexingHintAction)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML attribute. The hint has specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XContainer_System_Xml_Linq_XName_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement(System.Xml.Linq.XContainer,System.Xml.Linq.XName)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XContainer_System_Xml_Linq_XName_">IndexedElement(XContainer, XName)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML element. The hint has default action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XContainer_System_Xml_Linq_XName_C1_LiveLinq_IndexingHintAction_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement(System.Xml.Linq.XContainer,System.Xml.Linq.XName,C1.LiveLinq.IndexingHintAction)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XContainer_System_Xml_Linq_XName_C1_LiveLinq_IndexingHintAction_">IndexedElement(XContainer, XName, IndexingHintAction)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML element. The hint has specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XElement_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement(System.Xml.Linq.XElement)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XElement_">IndexedElement(XElement)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML element. The hint has default action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XElement_C1_LiveLinq_IndexingHintAction_" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement(System.Xml.Linq.XElement,C1.LiveLinq.IndexingHintAction)">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.IndexedElement.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_IndexedElement_System_Xml_Linq_XElement_C1_LiveLinq_IndexingHintAction_">IndexedElement(XElement, IndexingHintAction)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint to create and use an index on the specified XML element. The hint has specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Nodes__1_C1_LiveLinq_LiveViews_View___0__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Nodes``1(C1.LiveLinq.LiveViews.View{``0})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Nodes.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Nodes__1_C1_LiveLinq_LiveViews_View___0__">Nodes&lt;T&gt;(View&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a view representing the collection of child nodes of every document and element in the source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_LiveViews_Xml_XmlExtensions_Root_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XDocument__" data-uid="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Root(C1.LiveLinq.LiveViews.View{System.Xml.Linq.XDocument})">
          <a class="xref" href="C1.LiveLinq.LiveViews.Xml.XmlExtensions.Root.html#C1_LiveLinq_LiveViews_Xml_XmlExtensions_Root_C1_LiveLinq_LiveViews_View_System_Xml_Linq_XDocument__">Root(View&lt;XDocument&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the view for the root element of the XML tree for this document.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
