EDN Admin
Well-known member
Hi;
I am trying to use this statement to display an XML element and its value -
IEnumerable<XElement> elements = xDocument.Desendants ("Appraiser");
foreach (XElement element in elements)
{
Console.WriteLine("Element: {0} : Value = {1}",
element.Name, element.Value);
}
Here is the xml file contents :
<pre class="prettyprint <APPRAISER>
<EMAIL>test@testing.com</EMAIL>
<SIGNED>
<DATE>05/27/2011</DATE>
</SIGNED>
<STATECERT>
<NUM>111122223333</NUM>
<STATEPROV>GA</STATEPROV>
</STATECERT>[/code]
The console returns nothing ?
Thanks for your insights <hr class="sig GeeMann
View the full article
I am trying to use this statement to display an XML element and its value -
IEnumerable<XElement> elements = xDocument.Desendants ("Appraiser");
foreach (XElement element in elements)
{
Console.WriteLine("Element: {0} : Value = {1}",
element.Name, element.Value);
}
Here is the xml file contents :
<pre class="prettyprint <APPRAISER>
<EMAIL>test@testing.com</EMAIL>
<SIGNED>
<DATE>05/27/2011</DATE>
</SIGNED>
<STATECERT>
<NUM>111122223333</NUM>
<STATEPROV>GA</STATEPROV>
</STATECERT>[/code]
The console returns nothing ?
Thanks for your insights <hr class="sig GeeMann
View the full article