why is root necessary in the next statement and not the xelement

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; dim dixdoc <span style="color:Blue; as XDocument
<span style="color:Blue; Dim id <span style="color:Blue; As XElement = dixdoc.Root

<span style="color:Blue; Dim list1 <span style="color:Blue; As IEnumerable(Of XElement) = id.Elements()

<span style="color:Blue; For <span style="color:Blue; Each el <span style="color:Blue; As XElement <span style="color:Blue; In list1 .............

<span style="color:Green; this doesnt work

<span style="color:Blue; Dim id <span style="color:Blue; As XElement = dixdoc.<root>

<span style="color:Green; where <root> is the rootelement
[/code]
<br/><hr class="sig nattelip

View the full article
 
Back
Top